anvie / litcrypt.rs

a Rust compiler plugin to encrypt string literal at compile time.
Other
197 stars 19 forks source link

Getting error: failed to load source for a dependency on `litcrypt` #1

Closed munjalpatel closed 3 years ago

munjalpatel commented 7 years ago

Hello I am trying to use this in my project.

However, doing cargo run gives me the following error: image

I have aded this in my Cargo.toml

[dependencies]
litcrypt = { git = "https://github.com/anvie/litcrypt.rs" }
xor = { git = "https://github.com/anvie/xor-rs" }

Here is my main.rs

fn main() {
    println!("{}", lc!("Hello, from Rust!"));
}
anvie commented 7 years ago

What Cargo & Rust version do you use?

munjalpatel commented 7 years ago

I installed Rust yesterday. So the latest version of Rust and Cargo.

>>> rustc --version
rustc 1.21.0 (3b72af97e 2017-10-09)

>>> cargo --version
cargo 0.22.0 (3423351a5 2017-10-06)
anvie commented 5 years ago

Please clone with recursive: git clone --recursive https://github.com/anvie/litcrypt.rs

anvie commented 3 years ago

Should fixed now, please pull from the latest master branch.