Skip to content

Commit

Permalink
Merge pull request #133 from magnusuMET/feature/bump-deps
Browse files Browse the repository at this point in the history
Bump dependencies
  • Loading branch information
magnusuMET authored Mar 14, 2024
2 parents 100da01 + e715ff3 commit c61b3c9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ members = [
]
default-members = ["netcdf", "netcdf-sys"]
resolver = "2"

[workspace.dependencies]
netcdf = { path = "netcdf", version = "0.9.0" }
netcdf-sys = { path = "netcdf-sys", version = "0.6.0" }
netcdf-src = { path = "netcdf-src", version = "0.3.0" }
hdf5-sys = { version = "0.8.0" }
4 changes: 2 additions & 2 deletions netcdf-src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build = "build.rs"
repository = "https://github.com/georust/netcdf"
license-file = "source/COPYRIGHT"
links = "netcdfsrc"
categories = ["ffi"]
categories = ["filesystem"]
keywords = ["netcdf"]
readme = "README.md"
exclude = [
Expand All @@ -31,7 +31,7 @@ exclude = [
dap = []

[dependencies]
hdf5-sys = { version = "0.8.0", features = ["hl", "deprecated", "zlib"] }
hdf5-sys = { workspace = true, features = ["hl", "deprecated", "zlib"] }
libz-sys = { version = "1.0.25" }

[build-dependencies]
Expand Down
8 changes: 4 additions & 4 deletions netcdf-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2021"
links = "netcdf"
build = "build.rs"
readme = "README.md"
categories = ["ffi", "filesystem", "science"]
categories = ["external-ffi-bindings", "filesystem", "science"]
exclude = [
"testdata/**",
]
Expand All @@ -22,15 +22,15 @@ rust-version = "1.70"
[dependencies]
libz-sys = { version = "1.0.25" }
curl-sys = { version = "0.4.51", optional = true }
hdf5-sys = { version = "0.8.0" }
netcdf-src = { path = "../netcdf-src", version = "0.3.0", optional = true }
hdf5-sys = { workspace = true }
netcdf-src = { workspace = true, optional = true }

[dev-dependencies]

[features]
default = []
memio = []
static = ["libz-sys/static", "hdf5-sys/static", "hdf5-sys/hl", "hdf5-sys/deprecated", "hdf5-sys/zlib", "netcdf-src", "curl-sys?/static-curl", "curl-sys?/static-ssl"]
static = ["libz-sys/static", "hdf5-sys/static", "hdf5-sys/hl", "hdf5-sys/deprecated", "hdf5-sys/zlib", "dep:netcdf-src", "curl-sys?/static-curl", "curl-sys?/static-ssl"]
dap = ["dep:curl-sys"]

[build-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions netcdf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ static = ["netcdf-sys/static"]

[dependencies]
ndarray = { version = "0.15", optional = true }
netcdf-sys = { path = "../netcdf-sys", version = "0.6.0" }
bitflags = "1.2.1"
netcdf-sys = { workspace = true }
bitflags = "2.4.2"

[dev-dependencies]
clap = { version = "4.5.1", features = ["derive"] }
tempfile = "3.1.0"
structopt = "0.3.3"

[package.metadata.docs.rs]
features = ["static"]
Expand Down
6 changes: 3 additions & 3 deletions netcdf/examples/ncdump.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use structopt::StructOpt;
use clap::Parser;

#[derive(Debug, StructOpt)]
#[derive(Debug, Parser)]
struct Opt {
path: std::path::PathBuf,
}

fn main() {
let opt = Opt::from_args();
let opt = Opt::parse();

match run(&opt.path) {
Err(e) => {
Expand Down

0 comments on commit c61b3c9

Please sign in to comment.