-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Add Rust dependency graph generation, enable workspace in…
…dexing for Rust docs (#120) * add dependency graph generation, enable workspace indexing for Rust docs * fix spelling * add cargo modules docs generation * fix BUILD udc args * add more than one crate * fix earthly * fix * fix RUSTDOCFLAGS assigning * update docs * fix spelling * revert RUSTDOCFLAGS update * fix * update --------- Co-authored-by: Steven Johnson <stevenj@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
131 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
[package] | ||
name = "hello_world" | ||
version = "0.1.0" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"crates/foo", | ||
"crates/bar", | ||
] | ||
|
||
[workspace.package] | ||
edition = "2021" | ||
version = "0.0.1" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
clap = {version= "4.4.7", features = ["derive" ] } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.5.1", features = ["html_reports"] } | ||
|
||
[lib] | ||
name = "hello_world_lib" | ||
path = "src/lib.rs" | ||
|
||
[[bin]] | ||
name = "hello_world" | ||
path = "src/main.rs" | ||
|
||
[[test]] | ||
name = "integration_test" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "benchmark" | ||
harness = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "bar" | ||
version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! This is the bar crate | ||
/// Adds two numbers | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "foo" | ||
version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
clap = {version= "4.4.7", features = ["derive" ] } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.5.1", features = ["html_reports"] } | ||
|
||
[[test]] | ||
name = "integration_test" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "benchmark" | ||
harness = false |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.