Skip to content
Discussion options

You must be logged in to vote

It is not implemented yet, but the ideal implementation would be the like following.

Just like features of Cargo, [libraries] would provide default and option.

Dep/poac.toml

[libraries]
default = ["default1", "default2"]
option = ["option1", "option2"]

Then users specify libraries as long as users want to link.

Package/poac.toml

[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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oraqlle
Comment options

Answer selected by oraqlle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants