Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Find closest Cargo.toml to your current file instead of looking in the project root #1198

Open
donaldpipowitch opened this issue Dec 18, 2018 · 0 comments
Labels
enhancement Indicates new feature requests

Comments

@donaldpipowitch
Copy link

Hi there!

In celebration of Rust 2018 I update my "Rust for Node Developers" tutorial. This project contains several standalone example which have their own Cargo.toml (e.g. here). But without a Cargo.toml in the root of my project nothing works (not even formatting the source code). I can workaround this by adding a workspace Cargo.toml in the root, but it is really a workaround, because the packages don't depend on each other. And I even have a small example without any Cargo.toml (e.g. here). In this case I'd expect basic features like formatting to work.

So my which list:

  1. Find the closed Cargo.toml relative to my current .rs file by recursively looking in parent directories.
  2. If a Cargo.toml can't be found some default/fallback behaviour should kick in so things like formatting still work.

Thank you.

@Xanewok Xanewok added the enhancement Indicates new feature requests label Mar 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants