-1

I want to build a currently unpublished library and an application which uses it.

How to include an unpublished library in the executable application's Cargo.toml file?

From looking at the creates documentation it looks like it's something along the line of:

paths = ["/path/to/uuid"]

How to include unpublished libraries in rust projects using filepaths, or github/gitlab repository links?

Greg
  • 8,175
  • 16
  • 72
  • 125

1 Answers1

1

paths are set in .cargo/config, not in Cargo.toml, and are only for replacing already existing dependencies with local forks.

Unpublished crates can be referenced either by git; other crates in the same repository by local path.

Stefan
  • 5,304
  • 2
  • 25
  • 44