brotzeit/rustic

Project not found when open any rust file, Cargo.toml exists in parent directory but is not found

JohnBasrai opened this issue · 0 comments

Whenever I open a rust source file a window pops up on the bottom of the frame that says
XYZ.rs is not part of any project.

If I select 'i', it assumes the top of the git repo is the project dir, but it has passed up a directory with a Cargo.toml in it before getting to the top of the repo. I do not have a Cargo.toml file at the top of the repo since the project has two executables each with its own Cargo.toml.

This is the truncated tree of the repo.

├── caas-runtime-ftagent
│   ├── caas-dmd
│   │   ├── Cargo.lock
│   │   ├── Cargo.toml
│   │   ├── config
│   │   │   ├── caas-dmd-bad.toml
│   │   │   └── caas-dmd.toml
│   │   ├── rustfmt.toml
│   │   └── src
│   │       ├── app.rs
│   │       ├── arg_parser.rs
│   │       ├── config.rs
│   │       └── main.rs
│   ├── caas-ftm
│   │   ├── Cargo.lock
│   │   ├── Cargo.toml
│   │   ├── config
│   │   │   ├── caas-ftm-minimal.toml
│   │   │   └── caas-ftm.toml
│   │   ├── rustfmt.toml
│   │   ├── rust-toolchain.toml
│   │   └── src
│   │       ├── arg_parser.rs
│   │       ├── config.rs
│   │       ├── db_sqlx.rs
│   │       ├── dir_mon.rs
│   │       ├── fta_cb.rs
│   │       ├── main.rs
│   │       ├── pm_exporter.rs
│   │       └── service_endpoint.rs
│   ├── config
│   │   ├── ground-host-fta.conf
│   │   └── sensor-host-fta.conf
│   ├── db-init.sql
│   ├── docker-build.sh
│   ├── Dockerfile