Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not find Cargo.toml #77

Open
EzrielS opened this issue Feb 14, 2022 · 3 comments
Open

error: could not find Cargo.toml #77

EzrielS opened this issue Feb 14, 2022 · 3 comments

Comments

@EzrielS
Copy link

EzrielS commented Feb 14, 2022

Hello,

I tryed rust-optimizer after compiling the template from cw-template but when I executed it I get
error: could not find Cargo.toml in /code or any parent directory

For information I'm working on wsl, i don't know if that can help.
Thanks in advance !

@andqk00
Copy link

andqk00 commented Jun 10, 2022

any update on this issue?

@webmaster128
Copy link
Member

Which command do you use to call rust-optimizer?

@daharon
Copy link

daharon commented Aug 6, 2022

I had the same problem running this in Fedora with Podman.
The culprit was SELinux.

There's no need to disable SELinux.
Just run it like so:

-docker run \
+podman run \
   --rm \
-  -v "$(pwd)":/code \
+  -v "$(pwd)":/code:z \
   --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
   --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
   cosmwasm/rust-optimizer:0.12.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants