Registry / build-tool / manifest-dir-macros

manifest-dir-macros

JSON →
library0.1.18rscratesunverified

Provides function-like macros to check or operate paths relative to CARGO_MANIFEST_DIR at compile time.

# Cargo.toml [dependencies] manifest-dir-macros = "0.1.18"
INSTALL
IMPORT
SIG · MANIFEST-DIR-MACRO
M
manifest-dir-macros
build-toolrustv0.1.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

manifest_dir_str
use manifest_dir_macros::manifest_dir_str;

Uses manifest_dir_str! to get a compile-time path relative to CARGO_MANIFEST_DIR.

use manifest_dir_macros::manifest_dir_str; fn main() { let path = manifest_dir_str!("data/file.txt"); println!("{}", path); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.18latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
manifest-dir-macros — cargo add manifest-dir-macros · libregistry