Skip to content

cargo vs rc files #2266

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

Closed
jesse99 opened this issue Apr 21, 2012 · 4 comments
Closed

cargo vs rc files #2266

jesse99 opened this issue Apr 21, 2012 · 4 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@jesse99
Copy link
Contributor

jesse99 commented Apr 21, 2012

The https://github.com/mozilla/rust/wiki/Doc-using-cargo-to-manage-packages[registering your packages] wiki says to be "sure your package has a crate file in its root directory called .rc". This seems very awkward for non-trivial libraries which often want to package .rs and the .rc file together in a src directory.

@brson
Copy link
Contributor

brson commented Apr 21, 2012

e3961df allows .rc files to be discovered in subdirectories. I didn't test it very hard though. Let me know if it helps.

@catamorphism
Copy link
Contributor

@jesse99 - Did @brson 's patch work for you?

@jesse99
Copy link
Contributor Author

jesse99 commented Apr 29, 2012

I don't know; I'm not using cargo. I did add my package, rparse, which has the rc file embedded in a nested src directory. So if that works the patch should be OK (and the cargo web site should be updated).

@brson
Copy link
Contributor

brson commented Jun 22, 2012

Fixed

@brson brson closed this as completed Jun 22, 2012
tshepang pushed a commit to tshepang/rust that referenced this issue May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants