We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a50e8 commit 88219a3Copy full SHA for 88219a3
src/fixups.rs
@@ -872,6 +872,9 @@ impl<'meta> Fixups<'meta> {
872
873
for cargo_env in config.cargo_env.iter() {
874
let v = match cargo_env {
875
+ CargoEnv::CARGO_CRATE_NAME => {
876
+ StringOrPath::String(self.target.name.replace('-', "_"))
877
+ }
878
CargoEnv::CARGO_MANIFEST_DIR => {
879
if matches!(self.config.vendor, VendorConfig::Source(_))
880
|| matches!(self.package.source, Source::Local)
src/fixups/config.rs
@@ -262,6 +262,7 @@ pub enum CargoEnvs {
262
)]
263
#[allow(non_camel_case_types)]
264
pub enum CargoEnv {
265
+ CARGO_CRATE_NAME,
266
CARGO_MANIFEST_DIR,
267
CARGO_PKG_AUTHORS,
268
CARGO_PKG_DESCRIPTION,
0 commit comments