Registry / utility / cfg-match

cfg-match

JSON →
library0.2.1rscratesunverified

Provides compile-time conditional matching similar to cfg! but with pattern matching on configuration predicates.

# Cargo.toml [dependencies] cfg-match = "0.2.1"
INSTALL
IMPORT
SIG · CFG-MATCH
C
cfg-match
utilityrustv0.2.1
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.

cfg_match
✓ use cfg_match::cfg_match;

Demonstrates compile-time conditional matching using cfg_match! macro.

use cfg_match::cfg_match; fn main() { let os = cfg_match! { target_os = "linux" => "Linux", target_os = "windows" => "Windows", _ => "Other", }; println!("OS: {}", os); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cfg-match — cargo add cfg-match · libregistry