diff --git a/python/Cargo.toml b/python/Cargo.toml index aae74bafb..ec0721edd 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -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" diff --git a/rascaline-c-api/Cargo.toml b/rascaline-c-api/Cargo.toml index 7c22cf3ef..82c821d23 100644 --- a/rascaline-c-api/Cargo.toml +++ b/rascaline-c-api/Cargo.toml @@ -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" diff --git a/rascaline-c-api/build.rs b/rascaline-c-api/build.rs index 00d901f95..9a555b753 100644 --- a/rascaline-c-api/build.rs +++ b/rascaline-c-api/build.rs @@ -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"); diff --git a/rascaline-torch/Cargo.toml b/rascaline-torch/Cargo.toml index f4f1da5a2..cf437b22c 100644 --- a/rascaline-torch/Cargo.toml +++ b/rascaline-torch/Cargo.toml @@ -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" diff --git a/rascaline/Cargo.toml b/rascaline/Cargo.toml index b45ac15a1..5e0866a46 100644 --- a/rascaline/Cargo.toml +++ b/rascaline/Cargo.toml @@ -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" @@ -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"