Loading

error: failed to download `crateName version`

Publiseringsdato: Jun 10, 2025
Beskrivelse

Issue

Following PDK documentation to set up the development environment and trying to compile custom policy with make build command facing error similar to below:

====

error: failed to download `base64ct v1.8.0` Caused by: unable to get packages from source Caused by: failed to parse manifest at `/Users/***/.cargo/registry/src/index.crates.io-6f17d22bba15001f/base64ct-1.8.0/Cargo.toml` Caused by: feature `edition2024` is required The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.83.0 (5ffbef321 2024-10-29)). Consider trying a newer version of Cargo (this may require the nightly release). See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information

====

Cause

 When compiling your policy the first time, Rust fetches the latest version dependencies which may not supported by PDK

 

Løsning

Resolution

Downgrade specific crate version with below command

cargo update -p somecrate --precise major.minor.patch

 

Example

cargo update -p base64ct --precise 1.7.3

Flere ressurser

If you're still facing the issue after downgrading the package, please raise a support case to confirm latest version of package that is compatible with PDK

Knowledge-artikkelnummer

005036305

 
Laster
Salesforce Help | Article