Skip to content

Commit 43a31b7

Browse files
committed
Adjust features for examples
1 parent c075bf4 commit 43a31b7

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
lfs: true
4949
- name: Build
5050
run: |
51-
cargo build --manifest-path="splashsurf_lib/Cargo.toml" --all-features --verbose
51+
cargo build --manifest-path="splashsurf_lib/Cargo.toml" --all-targets --all-features --verbose
5252
- name: Run tests
5353
run: |
5454
cargo test --manifest-path="splashsurf_lib/Cargo.toml" --all-features --verbose
@@ -66,7 +66,7 @@ jobs:
6666
lfs: true
6767
- name: Build
6868
run: |
69-
cargo build --manifest-path="splashsurf_lib/Cargo.toml" --no-default-features --verbose
69+
cargo build --manifest-path="splashsurf_lib/Cargo.toml" --all-targets --no-default-features --verbose
7070
- name: Run tests
7171
run: |
7272
cargo test --manifest-path="splashsurf_lib/Cargo.toml" --no-default-features --verbose

splashsurf_lib/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,18 @@ sdfu = { git = "https://github.com/w1th0utnam3/sdfu", features = [
6868
"ultraviolet",
6969
], rev = "74856c41aaace7cf12e21b41bd0007f1363fea45" }
7070

71+
[[example]]
72+
name = "minimal_levelset"
73+
path = "examples/minimal_levelset.rs"
74+
required-features = ["io"]
75+
76+
[[example]]
77+
name = "minimal_sph_levelset"
78+
path = "examples/minimal_sph_levelset.rs"
79+
required-features = ["profiling", "io"]
80+
7181
[[bench]]
7282
name = "splashsurf_lib_benches"
7383
path = "benches/splashsurf_lib_benches.rs"
7484
harness = false
85+
required-features = ["io"]

splashsurf_lib/examples/minimal_levelset.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use anyhow::anyhow;
44
use sdfu::SDF;
55
use splashsurf_lib::Aabb3d;
66
use splashsurf_lib::Real;
7-
#[cfg(feature = "io")]
87
use splashsurf_lib::io;
98
use splashsurf_lib::marching_cubes::marching_cubes_lut::marching_cubes_triangulation_iter;
109
use splashsurf_lib::mesh::TriMesh3d;

0 commit comments

Comments
 (0)