Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation version name, should increase when dicom-rs version changes #560

Open
qarmin opened this issue Sep 3, 2024 · 0 comments
Open
Labels
A-lib Area: library C-ul Crate: dicom-ul

Comments

@qarmin
Copy link

qarmin commented Sep 3, 2024

Maybe is there a way to automate this like build.rs file?

use std::env;

fn main() {
    let version = env::var("CARGO_PKG_VERSION").unwrap();
    println!("cargo:rustc-env=IMPLEMENTATION_VERSION_NAME=DICOM-rs {}", version);
}
pub const IMPLEMENTATION_VERSION_NAME: &str = env!("IMPLEMENTATION_VERSION_NAME");

pub const IMPLEMENTATION_VERSION_NAME: &str = "DICOM-rs 0.6";

@Enet4 Enet4 added A-lib Area: library C-ul Crate: dicom-ul labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lib Area: library C-ul Crate: dicom-ul
Projects
None yet
Development

No branches or pull requests

2 participants