Replies: 2 comments 3 replies
-
You seem to be targeting |
Beta Was this translation helpful? Give feedback.
3 replies
-
Now for some reason when I recreated the same steps on my laptop (that has the same OS and even its configuration) it just started magically working. If someone like my has the same issue as my I would advise you to remove all the cache that cargo and rustup has. I also use this nix flake. flake.nix: {
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
esp32 = {
url = "github:knarkzel/esp32";
inputs.nixpkgs.follows = "nixpkgs";
};
esp-dev = {
url = "github:mirrexagon/nixpkgs-esp-dev";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
esp32,
esp-dev
}: let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
esp-dev.overlays.default
];
};
idf-rust = esp32.packages.x86_64-linux.esp32;
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
pkgs.esp-idf-esp32
idf-rust
];
shellHook = ''
export PATH="${idf-rust}/.rustup/toolchains/esp/bin:$PATH"
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
'';
};
};
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to follow this book, but I stumbled on a quite annoying issue which I couldn't fix myself.
While compiling esp-backtrace via running
cargo run --release
I get this error:Source
main.rs:
rust-toolchain.toml:
Cargo.toml:
I also saw discussion #1783, but I couldn't wrap my head around it.
PS. I'm new to embedded rust, so it might be some kind of dumb mistake.
Beta Was this translation helpful? Give feedback.
All reactions