Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Split out binary and lib build - #55

Merged
raphlinus merged 1 commit into
pulldown-cmark:masterfrom
GuillaumeGomez:split-lib-bin
Mar 21, 2017
Merged

raphlinus merged 1 commit into
pulldown-cmark:masterfrom
GuillaumeGomez:split-lib-bin

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Contributor

Otherwise we can't use it in rust because of the getopts duplicate.

@raphlinus

Copy link
Copy Markdown
Collaborator

I'm not 100% sure I understand why this is needed, but am ok with it if it's the cleanest way to solve the problem.

Any reason you didn't make the binary the default, and turn off the feature in clients?

@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

I can, it depends on what you prefer. But as far as I know, people use pulldown-cmark for its lib, not its binary.

And for the explanations: we need to remove the getopts duplicate (the version is different than the one used in rust) so rust tests can run on rustdoc without this failure. And I think you'd prefer avoid an update on your getopts version every time rust does it as well. ;)

@raphlinus
raphlinus merged commit 02fac67 into pulldown-cmark:master Mar 21, 2017
@raphlinus

Copy link
Copy Markdown
Collaborator

Thanks!

@GuillaumeGomez
GuillaumeGomez deleted the split-lib-bin branch March 21, 2017 16:51
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Thanks to you! :)

@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Can you ping me once it's published please?

@raphlinus

Copy link
Copy Markdown
Collaborator

Now "cargo publish" fails, saying error: main function not found. Know what I should do? Seems to me defaulting to build the binary is one way to fix that...

@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

I think I know where it comes from, just a second.

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.

2 participants