Multi library setup #648
-
How do you specify a package with multiple libraries and how would a downstream user indicate the usage of these libraries? |
Beta Was this translation helpful? Give feedback.
Answered by
ken-matsui
Jul 11, 2022
Replies: 1 comment 1 reply
-
It is not implemented yet, but the ideal implementation would be the like following. Just like
[libraries]
default = ["default1", "default2"]
option = ["option1", "option2"] Then users specify libraries as long as users want to link.
[dependencies]
Dep = "0.1.0" # "default1", "default2"
Dep = { version = "0.1.0", libraries = ["option1", "option2"] } # "default1", "default2", "option1", "option2"
Dep = { version = "0.1.0", default-libraries = false } # no lib will be linked |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
oraqlle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not implemented yet, but the ideal implementation would be the like following.
Just like
features
of Cargo,[libraries]
would providedefault
andoption
.Dep/poac.toml
Then users specify libraries as long as users want to link.
Package/poac.toml