Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SongRec as a lib #15

Closed
LeanderK opened this issue Dec 7, 2020 · 3 comments
Closed

SongRec as a lib #15

LeanderK opened this issue Dec 7, 2020 · 3 comments

Comments

@LeanderK
Copy link

LeanderK commented Dec 7, 2020

As mentioned here #11, I want to use SongRec from python. I never coded in rust, but I set up a small rust wrapper to marshall the types, but I am unable to import anything even though SongRec is in my cradle dependencies (can't find crate for `songrec` ).

I think this is due to SongRec not having a lib-section and therefore not exposing anything (first time using rust...)?

@marin-m
Copy link
Owner

marin-m commented Dec 7, 2020

Hello,

See here for the purpose of not making a library: #12

You can't import this crate as a library because this is a binary crate. There are two types of crates in Rust, binary crates, which have a src/main.rs file and have an entry point other that tests or benchmarks, and library crates which have a src/lib.rs file and are importable in other projects.

@LeanderK
Copy link
Author

LeanderK commented Dec 7, 2020

ok. Should I close this issue then?

@marin-m
Copy link
Owner

marin-m commented Dec 7, 2020

No problem

@marin-m marin-m closed this as completed Dec 7, 2020
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

No branches or pull requests

2 participants