Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Separate car-thing into individual crates #7

Open
theoparis opened this issue Nov 3, 2024 · 0 comments
Open

Separate car-thing into individual crates #7

theoparis opened this issue Nov 3, 2024 · 0 comments

Comments

@theoparis
Copy link
Contributor

Separate the car-thing binary and car-thing library into individual crates.

theoparis added a commit that referenced this issue Nov 3, 2024
Fixes #7

Separate the `car-thing` binary and library into individual crates.

* Modify `Cargo.toml` to add `car-thing-bin` and `car-thing-lib` to the `members` array.
* Rename `crates/car-thing/Cargo.toml` to `crates/car-thing-bin/Cargo.toml` and update the package name to `car-thing-bin`. Add dependency for `car-thing-lib`.
* Rename `crates/car-thing/src/main.rs` to `crates/car-thing-lib/src/lib.rs` and remove the binary implementation.
* Add `crates/car-thing-bin/src/main.rs` to implement the `car-thing-bin` binary using `clap` and `car-thing-lib`.
* Add `crates/car-thing-lib/Cargo.toml` to define the `car-thing-lib` package and add dependency for `rusb`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tinted-software/car-thing-tools/issues/7?shareId=XXXX-XXXX-XXXX-XXXX).
theoparis added a commit that referenced this issue Nov 3, 2024
Fixes #7

Separate the `car-thing` binary and library into individual crates.

* Modify `Cargo.toml` to add `car-thing-bin` and `car-thing-lib` to the `members` array.
* Rename `crates/car-thing/Cargo.toml` to `crates/car-thing-bin/Cargo.toml` and update the package name to `car-thing-bin`. Add dependency for `car-thing-lib`.
* Rename `crates/car-thing/src/main.rs` to `crates/car-thing-lib/src/lib.rs` and remove the binary implementation.
* Add `crates/car-thing-bin/src/main.rs` to implement the `car-thing-bin` binary using `clap` and `car-thing-lib`.
* Add `crates/car-thing-lib/Cargo.toml` to define the `car-thing-lib` package and add dependency for `rusb`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tinted-software/car-thing-tools/issues/7?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant