Closed dj8yfo closed 9 months ago
resolves #271
a way to disable proc-macro-crate (it depends on cargo binary being available) without annotating each derive with tautological #[borsh(crate = "borsh")]
proc-macro-crate
cargo
#[borsh(crate = "borsh")]
sample1, derive_use_cargo : default features sample1 : proc-macro-crate dependency in Cargo.lock
Cargo.lock
sample2, derive_no_use_cargo : opt-out of derive_use_cargo feature sample2 : proc-macro-crate dependency absent in Cargo.lock
derive_use_cargo
NOTE: this change causes breakage for no_std projects with borsh dependency renamed - sample3, derive_no_std_rename_breakage This commit breaks compilation on version update, and this fixes it.
no_std
borsh
I am closing this PR as per https://github.com/near/borsh-rs/issues/271#issuecomment-1854690257
resolves #271
a way to disable
proc-macro-crate
(it depends oncargo
binary being available) without annotating each derive with tautological#[borsh(crate = "borsh")]
sample1, derive_use_cargo : default features sample1 :
proc-macro-crate
dependency inCargo.lock
sample2, derive_no_use_cargo : opt-out of
derive_use_cargo
feature sample2 :proc-macro-crate
dependency absent inCargo.lock
NOTE: this change causes breakage for
no_std
projects withborsh
dependency renamed - sample3, derive_no_std_rename_breakage This commit breaks compilation on version update, and this fixes it.