include-cargo-toml 0.1.0

Load properties of Cargo.toml at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
#![cfg(test)]

mod submodule;

/// Tests whether the macro is independent of the folder structure.
/// If this passes, the macro can be used inside submodules / folders.
#[test]
pub fn load_version_from_inner_folder() {
    assert_eq!(submodule::CRATE_NAME, "include-cargo-toml");
}