Skip to content

Commit 32baa2e

Browse files
committed
Re-export vtkio from lib
1 parent 3e9c191 commit 32baa2e

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
## Version 0.3.0
22

33
- Move `vtkio` convenience trait implementations in `splashsurf_lib` behind a non-default feature flag (flag `vtk-extras`). Flag is enabled in the CLI crate.
4+
- Re-export `vtkio` from lib, use this from CLI
45
- Move `coarse_prof` usage in `splashsurf_lib` behind a non-default feature flag (flag `profiling`). Flag is enabled in the CLI crate.
56

67
## Version 0.2.0
78

89
- Add support for reading PLY files (https://github.com/w1th0utnam3/splashsurf/pull/1)
910
- Update dependencies
10-
- Re-export `nalgebra` from lib, use this from binary
11+
- Re-export `nalgebra` from lib, use this from CLI
1112

1213
## Version 0.1.0
1314

splashsurf/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ fern = "0.6"
2020
chrono = "0.4"
2121
anyhow = "1.0"
2222
coarse-prof = "0.2"
23-
vtkio = "0.5"
2423
num = "0.3"
2524
rayon = "1.5"
2625
ply-rs = "0.1.3"

splashsurf/src/io/vtk_format.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ use std::fs::create_dir_all;
22
use std::path::Path;
33

44
use anyhow::{anyhow, Context};
5-
use vtkio::model::{ByteOrder, DataSet, Version, Vtk};
6-
use vtkio::{export_be, import_be, IOBuffer};
75

86
use splashsurf_lib::nalgebra::Vector3;
97
use splashsurf_lib::Real;
8+
use splashsurf_lib::vtkio;
9+
10+
use vtkio::model::{ByteOrder, DataSet, Version, Vtk};
11+
use vtkio::{export_be, import_be, IOBuffer};
1012

1113
pub fn particles_from_vtk<R: Real, P: AsRef<Path>>(
1214
vtk_file: P,

splashsurf_lib/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
55
/// Re-export the version of nalgebra used by this crate
66
pub use nalgebra;
7+
/// Re-export the version of vtkio used by this crate, if vtk support is enabled
8+
#[cfg(feature = "vtk_extras")]
9+
pub use vtkio;
710

811
#[cfg(feature = "profiling")]
912
/// Invokes coarse_prof::profile! with the given expression

0 commit comments

Comments
 (0)