Skip to content

Commit

Permalink
Update Rust dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Dec 19, 2023
1 parent ce6fb8b commit 0daebc6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 17 deletions.
5 changes: 4 additions & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ test = false
doctest = false

[dev-dependencies]
which = "4"
which = "5"

# This is the last version supporting rustc 1.65
home = "=0.5.5"
7 changes: 5 additions & 2 deletions rascaline-c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ time-graph = {version = "0.3.0", features = ["table", "json"]}
libc = "0.2"

[build-dependencies]
cbindgen = { version = "0.24", default-features = false }
cbindgen = { version = "0.26", default-features = false }
fs_extra = "1"
metatensor = "0.1"

[dev-dependencies]
which = "4"
which = "5"

# This is the last version supporting rustc 1.65
home = "=0.5.5"
22 changes: 11 additions & 11 deletions rascaline-c-api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ fn main() {
* documentation), make the corresponding changes in the rust sources. *
* =========================================================================== */";

let mut config: cbindgen::Config = Default::default();
config.language = cbindgen::Language::C;
config.cpp_compat = true;
config.includes = vec!["metatensor.h".into()];
config.include_guard = Some("RASCALINE_H".into());
config.include_version = false;
config.documentation = true;
config.documentation_style = cbindgen::DocumentationStyle::Doxy;
config.header = Some(generated_comment.into());

let result = cbindgen::Builder::new()
.with_crate(crate_dir)
.with_config(cbindgen::Config {
language: cbindgen::Language::C,
cpp_compat: true,
includes: vec!["metatensor.h".into()],
include_guard: Some("RASCALINE_H".into()),
include_version: false,
documentation: true,
documentation_style: cbindgen::DocumentationStyle::Doxy,
header: Some(generated_comment.into()),
..Default::default()
})
.with_config(config)
.generate()
.map(|data| {
let mut path = PathBuf::from("include");
Expand Down
5 changes: 4 additions & 1 deletion rascaline-torch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ test = false
doctest = false

[dev-dependencies]
which = "4"
which = "5"

# This is the last version supporting rustc 1.65
home = "=0.5.5"
8 changes: 6 additions & 2 deletions rascaline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rayon = "1.5"

log = "0.4"
once_cell = "1"
indexmap = "1.8"
indexmap = "2"
thread_local = "1.1"
time-graph = "0.3.0"

Expand All @@ -57,7 +57,11 @@ chemfiles = {version = "0.10", optional = true}
approx = "0.5"

[dev-dependencies]
criterion = "0.4"
criterion = "0.5"

# This is the last version supporting rustc 1.65
clap = "=4.2.1"

glob = "0.3"
ndarray-npy = "0.8"
flate2 = "1.0.20"
Expand Down

0 comments on commit 0daebc6

Please sign in to comment.