clockworklabs / clockworklabs/SpacetimeDB
CLI: Search upwards for `Cargo.toml` to detect `--project-path`
Open
@bfops is already working on this.
Since Mar 7, 2025.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
Several CLI subcommands (publish, build, generate, possibly others) attempt to determine whether the project is Rust or C# by looking for a Cargo.toml file in the current directory (or the --project-path if passed), and assume C# if the Cargo.toml is not found. This is a bad system and should be changed, but at the very least, they should search up for the Cargo.toml so that it's possible to run the commands from a subdirectory of a Rust project (e.g. in src/).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.