Skip to main content

Module cargo

Module cargo 

Source
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.

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 ๐Ÿ”’