Registry / config / const-env

const-env

JSON →
library0.1.5rscratesunverified

Configure const and static items using environment variables at compile time.

# Cargo.toml [dependencies] const_env = "0.1.5"
INSTALL
IMPORT
SIG · CONST-ENV
C
const-env
configrustv0.1.5
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.

env
use const_env::env;

Defines a constant from an environment variable with a fallback.

use const_env::env; const MY_VAR: &str = env!("MY_ENV_VAR", "default_value"); println!("{}", MY_VAR);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
28
OpenAI (training)
1
Resources
const-env — cargo add const-env · libregistry