-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
I wanted to try it out after I saw your announcement on Reddit but it seems like you haven't published the latest crate to crates.io.
Just tried to install:
cargo install cookcli
Yields:
error[E0432]: unresolved import `cooklang::ScaledQuantity`
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/shopping_list.rs:41:5
|
41 | ScaledQuantity,
| ^^^^^^^^^^^^^^ no `ScaledQuantity` in the root
error[E0432]: unresolved import `cooklang::quantity::QuantityValue`
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_cooklang.rs:40:26
|
40 | quantity::{Quantity, QuantityValue},
| ^^^^^^^^^^^^^ no `QuantityValue` in `quantity`
|
= help: consider importing this struct instead:
cooklang::parser::QuantityValue
error[E0432]: unresolved imports `cooklang::scale::ScaleOutcome`, `cooklang::ScaledRecipe`
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_human.rs:44:5
|
44 | scale::ScaleOutcome,
| ^^^^^^^^^^^^^^^^^^^ no `ScaleOutcome` in `scale`
45 | ScaledRecipe, Section, Step,
| ^^^^^^^^^^^^ no `ScaledRecipe` in the root
error[E0432]: unresolved import `cooklang::ScaledRecipe`
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_md.rs:40:5
|
40 | ScaledRecipe,
| ^^^^^^^^^^^^ no `ScaledRecipe` in the root
error[E0412]: cannot find type `ScaledRecipe` in crate `cooklang`
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/server/mod.rs:358:31
|
358 | recipe: Arc<cooklang::ScaledRecipe>,
| ^^^^^^^^^^^^ not found in `cooklang`
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_cooklang.rs:217:26
|
217 | quantity: Option<&'a Quantity<V>>,
| ^^^^^^^^--- help: remove the unnecessary generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cooklang-0.16.6/src/quantity.rs:17:12
|
17 | pub struct Quantity {
| ^^^^^^^^
error[E0107]: struct takes 0 generic arguments but 2 generic arguments were supplied
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_cooklang.rs:46:14
|
46 | recipe: &Recipe<D, V>,
| ^^^^^^------ help: remove the unnecessary generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cooklang-0.16.6/src/model.rs:27:12
|
27 | pub struct Recipe {
| ^^^^^^
error[E0107]: struct takes 0 generic arguments but 2 generic arguments were supplied
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_cooklang.rs:72:67
|
72 | ... recipe: &Recipe<D, V>) -> Result<()> {
| ^^^^^^------ help: remove the unnecessary generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cooklang-0.16.6/src/model.rs:27:12
|
27 | pub struct Recipe {
| ^^^^^^
error[E0107]: struct takes 0 generic arguments but 2 generic arguments were supplied
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_cooklang.rs:82:14
|
82 | recipe: &Recipe<D, V>,
| ^^^^^^------ help: remove the unnecessary generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cooklang-0.16.6/src/model.rs:27:12
|
27 | pub struct Recipe {
| ^^^^^^
error[E0107]: struct takes 0 generic arguments but 2 generic arguments were supplied
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cookcli-0.12.2/src/util/cooklang_to_cooklang.rs:107:14
|
107 | recipe: &Recipe<D, V>,
| ^^^^^^------ help: remove the unnecessary generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /Users/muji/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cooklang-0.16.6/src/model.rs:27:12
|
27 | pub struct Recipe {
| ^^^^^^
Some errors have detailed explanations: E0107, E0412, E0432.
For more information about an error, try `rustc --explain E0107`.
error: could not compile `cookcli` (bin "cook") due to 10 previous errors
error: failed to compile `cookcli v0.12.2`, intermediate artifacts can be found at `/var/folders/gc/72rmwybd1vl_lh44f8xrtw680000gn/T/cargo-installBCFpHd`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Metadata
Metadata
Assignees
Labels
No labels