Docs.rs
workspacer-add-new-crate-to-workspace-0.1.2
workspacer-add-new-crate-to-workspace 0.1.2
Permalink
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
klebs6
Dependencies
tracing ^0.1.41
normal
workspacer-3p ^0.5.2
normal
workspacer-add-internal-dep ^0.1.3
normal
workspacer-crate ^0.5.2
normal
workspacer-crate-interface ^0.1.2
normal
workspacer-errors ^0.1.2
normal
workspacer-mock ^0.5.2
normal
workspacer-register-internal-crate-in-prefix-group ^0.1.2
normal
workspacer-scan-for-prefix-groups ^0.1.2
normal
workspacer-workspace ^0.1.2
normal
workspacer-workspace-interface ^0.1.3
normal
Versions
50%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
workspacer_
add_
new_
crate_
to_
workspace
0.1.2
All Items
Crate Items
Traits
Functions
Crate
workspacer_add_new_crate_to_workspace
Copy item path
Source
Traits
§
AddNew
Crate
ToWorkspace
The main trait: Add a brand-new crate to the workspace with minimal scaffolding.
AddTo
Workspace
Members
Create
Crate
Skeleton
Extension trait to create the new crate skeleton: directory, Cargo.toml, src/lib.rs, …
Functions
§
dash_
to_
snake_
case
Helper to transform dashes => underscores for snake-case usage
find_
single_
prefix_
match
A small helper that checks if
crate_name
starts with exactly one
prefix + "-"
from the scanned groups. If we find exactly one match, returns that prefix. If zero or multiple,
None
.