Type Alias rsass::input::CargoContext
source · pub type CargoContext = Context<CargoLoader>;
Expand description
Aliased Type§
struct CargoContext { /* private fields */ }
Implementations§
source§impl CargoContext
impl CargoContext
sourcepub fn for_crate() -> Result<Self, LoadError>
pub fn for_crate() -> Result<Self, LoadError>
Create a new Context
, loading files based in the manifest
directory of the current crate.
Relative paths will be resolved from the directory containing the
manifest of your package.
This assumes the program is called by cargo
as a build script, so
the CARGO_MANIFEST_DIR
environment variable is set.