Skip to content

Commit

Permalink
Remove dependency on clap
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Dec 14, 2024
1 parent 0e3bda7 commit e87e780
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ cxx = "1.0"
cxx-build = "1.0"
pkg-config = "0.3"
semver = "1"
clap = { version = "3", features = ["cargo"] }

[[example]]
name = "solverdummy"
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
extern crate clap;
extern crate pkg_config;
extern crate semver;
use clap::crate_version;
use semver::Version;

fn main() {
Expand All @@ -11,7 +9,7 @@ fn main() {
println!("cargo:rerun-if-changed=src/precice-bridge.hpp");

// Get version from the precice crate
let version = Version::parse(crate_version!()).expect("Unable to parse crate version");
let version = Version::parse(env!("CARGO_PKG_VERSION")).expect("Unable to parse crate version");
let (major, minor) = (version.major, version.minor);
let lower: &str = &format!("{major}.{minor}");
let upper: &str = &format!("{major}.{}", minor + 1);
Expand Down

0 comments on commit e87e780

Please sign in to comment.