Skip to content

Commit 849273e

Browse files
committed
cargo-rail: cleaning docs and fixing the broken generation script for the configs. cleaning and improving the readme; updating the docs for the last few commits.
1 parent 9783fca commit 849273e

File tree

8 files changed

+525
-189
lines changed

8 files changed

+525
-189
lines changed

README.md

Lines changed: 172 additions & 122 deletions
Large diffs are not rendered by default.

docs/architecture.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
```rust
7373
pub struct WorkspaceContext {
7474
pub workspace_root: PathBuf,
75-
pub git: Arc<GitState>, // Git pps
75+
pub git: Arc<GitState>, // Git ops
7676
pub cargo: Arc<CargoState>, // Cargo metadata (O(1) package lookup)
7777
pub graph: Arc<WorkspaceGraph>, // Dep graph
7878
pub config: Option<Arc<RailConfig>>,
@@ -85,10 +85,10 @@ pub struct WorkspaceContext {
8585

8686
```rust
8787
// Get changed files
88-
let files = ctx.git.git().changed_files_between(from, to)?;
88+
let files = ctx.git.git().get_changed_files_between(from, to)?;
8989

9090
// Look up a package (O(1))
91-
let pkg = ctx.cargo.get_package("my-crate")?;
91+
let pkg = ctx.cargo.get_package("my-crate").expect("workspace member exists");
9292

9393
// Find transitive dependents
9494
let dependents = ctx.graph.transitive_dependents("my-crate")?;
@@ -108,7 +108,7 @@ Parse CLI (clap)
108108
109109
Init output mode (quiet/JSON)
110110
111-
Handle early commands (init, undo, sync) ← These don't need full context
111+
Handle early commands (init, completions, config validate/sync/locate/print, unify undo) ← These don't need full context
112112
113113
Build WorkspaceContext (~100-300ms)
114114
├─ GitState (~5ms)

0 commit comments

Comments
 (0)