Skip to content

Commit d2cc90a

Browse files
epilysandreeaflorescu
authored andcommitted
Move all crates to workspace root
Having all the workspace crates under the crates/ directory is unnecessary. Rust documentation itself recommends all crates to be in the root directory: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html#creating-the-second-package-in-the-workspace I paste the text content here, in case the online page ever changes or becomes unavailable: ## Creating the Second Package in the Workspace Next, let’s create another member package in the workspace and call it add_one. Change the top-level Cargo.toml to specify the add_one path in the members list: Filename: Cargo.toml [workspace] members = [ "adder", "add_one", ] Then generate a new library crate named add_one: $ cargo new add_one --lib Created library `add_one` package Your add directory should now have these directories and files: ├── Cargo.lock ├── Cargo.toml ├── add_one │ ├── Cargo.toml │ └── src │ └── lib.rs ├── adder │ ├── Cargo.toml │ └── src │ └── main.rs └── target Signed-off-by: Manos Pitsidianakis <[email protected]>
1 parent 0d96baf commit d2cc90a

25 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
22
members = [
3-
"crates/vm-superio",
4-
"crates/vm-superio-ser",
3+
"vm-superio",
4+
"vm-superio-ser",
55
]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ covered in this crate, the VMM needs to do the following operations:
3838
- event handling (optional)
3939

4040
The following UART registers are emulated via the
41-
[`Serial` structure](crates/vm-superio/src/serial.rs): DLL, IER, DLH, IIR, LCR,
41+
[`Serial` structure](./vm-superio/src/serial.rs): DLL, IER, DLH, IIR, LCR,
4242
LSR, MCR, MSR and SR (a brief, but nice presentation about these,
4343
[here](https://www.lammertbies.nl/comm/info/serial-uart#regs)).
4444
The Fifo Control Register (FCR) is not emulated; there is no support yet for

crates/vm-superio-ser/LICENSE-APACHE

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/vm-superio-ser/LICENSE-BSD-3-Clause

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/vm-superio-ser/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/vm-superio/LICENSE-APACHE

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/vm-superio/LICENSE-BSD-3-Clause

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/vm-superio/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)