1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-15 22:00:26 +02:00

Add a cargo workspace containing both crates (#321)

* Move Cargo.toml for exercises to exercises directory.

* Create a workspace with both exercises and i18n-helpers.

* Build in CI as well as testing.

* Binaries must have a main function.

* No need for workspaces configuration for caching anymore.
This commit is contained in:
Andrew Walbran
2023-02-02 16:14:34 +00:00
committed by GitHub
parent a07bfa108f
commit 20f02db5f5
9 changed files with 1127 additions and 2132 deletions

46
src/exercises/Cargo.toml Normal file
View File

@ -0,0 +1,46 @@
[package]
name = "comprehensive-rust"
version = "0.1.0"
edition = "2021"
publish = false
[[bin]]
name = "for-loops"
path = "day-1/for-loops.rs"
[[bin]]
name = "book-library"
path = "day-1/book-library.rs"
[[bin]]
name = "points-polygons"
path = "day-2/points-polygons.rs"
[[bin]]
name = "luhn"
path = "day-2/luhn.rs"
[[bin]]
name = "strings-iterators"
path = "day-2/strings-iterators.rs"
[[bin]]
name = "safe-ffi-wrapper"
path = "day-3/safe-ffi-wrapper.rs"
[[bin]]
name = "simple-gui"
path = "day-3/simple-gui.rs"
[[bin]]
name = "dining-philosophers"
path = "day-4/dining-philosophers.rs"
[[bin]]
name = "link-checker"
path = "day-4/link-checker.rs"
[dependencies]
reqwest = { version = "0.11.12", features = ["blocking"] }
scraper = "0.13.0"
thiserror = "1.0.37"

View File

@ -222,3 +222,5 @@ mod tests {
}
}
// ANCHOR_END: unit-tests
fn main() {}

View File

@ -6,7 +6,4 @@
```rust
{{#include points-polygons.rs}}
#[allow(dead_code)]
fn main() {}
```

View File

@ -68,3 +68,5 @@ fn test_matches_with_wildcard() {
));
}
// ANCHOR_END: unit-tests
fn main() {}