Skip to content

Conversation

@gvangool
Copy link

When installing tfdoc from crates.io (cargo install tfdoc), it doesn't create the expected tfdoc binary. It did generate a main binary.

Based on my understanding of Cargo Targets > Binaries, we have 2 options:

  • move the file from src/bin/main.rs to src/main.rs (that will make it use the package name)
  • rename the file to the expected binary name (src/bin/main.rs to src/bin/tfdoc.rs)

As you can see, I opted for the second option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant