Re:First Impressions of Rust
by steveklabnik on Thursday August 06, 2020 @10:53PM
(#24077519)
Gotcha. You can use path as a dependency if you also use the version as a dependency, and it’ll use the path locally but the version when you publish. Maybe that needs to be better documented and would have just fixed your issue. (This is described at https://doc.rust-lang.org/stable/cargo/reference/specifying-... )
[ Parent
| on HN ]
That requires publishing the internal crates as separate entries in crates.io, if I understand correctly, which I don't want to do (see the final section on crates.io's packaging model).
Ideally I could have a single crates.io package, with a single tarball, containing multiple crates. The internal crates would not be exposed to users, wouldn't have versions, wouldn't be on docs.rs, and so on.
Re:First Impressions of Rust
by steveklabnik on Thursday August 06, 2020 @11:00PM
(#24077565)
Yeah, that is true, it does.
I do think that's an interesting idea. I'll have to mull on it. Thanks again. I've been thinking of a few things here, very interesting :)