Expand description
Cargo metadata captured for the running build.
Build-time macros embed the workspace manifest and selected crate manifests. This module processes that data lazily for runtime queries about project features and dependencies.
Re-exportsยง
use std::collections::BTreeMap;๐use std::sync::OnceLock;๐use semver::VersionReq;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::de::IgnoredAny;๐use smallstr::SmallString;๐use toml::from_str;๐use tuwunel_macros::cargo_manifest;๐use crate::Result;๐use crate::implement;๐
Structsยง
- Manifest ๐
- The
[features]table of a crate manifest. - Workspace ๐
- Workspace
Manifest ๐ - The
[workspace.dependencies]table of the workspace manifest.
Enumsยง
- Dependency ๐
- One
[workspace.dependencies]entry, a bare version or a table.
Constantsยง
- ADMIN_
MANIFEST ๐ - CORE_
MANIFEST ๐ - DATABASE_
MANIFEST ๐ - MACROS_
MANIFEST ๐ - MAIN_
MANIFEST ๐ - ROUTER_
MANIFEST ๐ - SERVICE_
MANIFEST ๐ - WORKSPACE_
MANIFEST ๐
Staticsยง
- DEPENDENCIES ๐
- Processed list of dependencies. This is generated from the data captured in the MANIFEST.
- FEATURES ๐
- Processed list of features across all project crates. This is generated from the data in the MANIFEST strings and contains all possible project features. For enabled features see the info::rustc module instead.
Functionsยง
- append_
features ๐ - dependencies
- Returns dependencies declared by the embedded workspace manifest.
- dependencies_
names - Lists dependency names declared by the workspace manifest.
- features
- List of all possible features for the project. For enabled features in this build see the companion function in info::rustc.
- init_
dependencies ๐ - init_
features ๐
Type Aliasesยง
- Dependencies ๐
- Features ๐
- Name ๐