Skip to content

Commit fbfd7e3

Browse files
Merge pull request #402 from marvin-hansen/main
Fix(deep_causality_sparse): Fixed feature flag pass through
2 parents 206d3c1 + 9989355 commit fbfd7e3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

deep_causality_num/src/algebra/monoid.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
* Copyright (c) "2025" . The DeepCausality Authors and Contributors. All Rights Reserved.
44
*/
55
use crate::{Associative, MulMagma, One, Zero};
6-
use core::ops::{Add, AddAssign};
7-
use std::ops::{Div, DivAssign};
6+
use core::ops::{Add, AddAssign, Div, DivAssign};
87

98
/// Represents an **Additive Monoid**.
109
///

deep_causality_sparse/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ rust_library(
55
srcs = glob([
66
"src/**",
77
]),
8+
crate_features = [
9+
"std",
10+
],
811
crate_root = "src/lib.rs",
912
tags = [
1013
"uncertain",

deep_causality_sparse/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ keywords = ["data-structures", "sliding-window", "grid-array"]
1414
# Exclude all bazel files as these conflict with Bazel workspace when vendored.
1515
exclude = ["*.bazel", "*/*.bazel", "*.bazel.*", "BUILD", "BUILD.bazel", "MODULE.bazel", ".bazelignore",".bazelrc", "tests/**/*"]
1616

17+
[features]
18+
default = ["std"]
19+
std = ["deep_causality_num/std"]
1720

1821
[dependencies.deep_causality_num]
1922
path = "../deep_causality_num"

0 commit comments

Comments
 (0)