zerotier / zerotier/zerotier-rust-api
progenitor::Generator::new() - missing argument error
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 8
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Cargo build error
OS: RPI OS 32bit
Host: RPI 4B 8GB RAM
Compile error message:
Compiling zerotier-one-api v1.1.0
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-central-api-1.1.0/build.rs:7:25
|
7 | let mut generator = progenitor::Generator::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `&GenerationSettings` is missing
|
note: associated function defined here
--> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/progenitor-impl-0.3.0/src/lib.rs:175:12
|
175 | pub fn new(settings: &GenerationSettings) -> Self {
| ^^^
help: provide the argument
|
7 | let mut generator = progenitor::Generator::new(/* &GenerationSettings */);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-one-api-1.1.0/build.rs:7:25
|
7 | let mut generator = progenitor::Generator::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `&GenerationSettings` is missing
|
note: associated function defined here
--> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/progenitor-impl-0.3.0/src/lib.rs:175:12
|
175 | pub fn new(settings: &GenerationSettings) -> Self {
| ^^^
help: provide the argument
|
7 | let mut generator = progenitor::Generator::new(/* &GenerationSettings */);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
error[E0599]: no method named `generate_text` found for struct `progenitor::Generator` in the current scope
--> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-central-api-1.1.0/build.rs:9:29
|
9 | let content = generator.generate_text(&spec).unwrap();
| ^^^^^^^^^^^^^ help: there is a method with a similar name: `generate_tokens`
error[E0599]: no method named `generate_text` found for struct `progenitor::Generator` in the current scope
--> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-one-api-1.1.0/build.rs:9:29
|
9 | let content = generator.generate_text(&spec).unwrap();
| ^^^^^^^^^^^^^ help: there is a method with a similar name: `generate_tokens`
Some errors have detailed explanations: E0061, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `zerotier-central-api` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `zerotier-one-api` due to 2 previous errors
error: failed to compile `zeronsd v0.5.0`, intermediate artifacts can be found at `/tmp/cargo-installKl0Uok`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the build.rs calls at lines 7 and 9 and compare them with the progenitor 0.3.0 API shown in the compiler output. Run cargo build for the affected crates and consider the issue complete when both crates compile without the reported Generator::new and generate_text errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100