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

Cargo & general updates. #29

Closed
wants to merge 2 commits into from
Closed

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Aug 25, 2014

This allows html5ever to be built via cargo and via the makefiles. Currently cargo build and cargo doc work fine, but cargo test doesn't:

There was a pile of file movement to get it into a format that works most naturally with cargo, although, I didn't touch bench (even though it's not special directory in cargo, theoretically it would move under tests); and the more interesting benchmarking means there may be some form of Makefile desired still.

I don't know what version or authors you'd like listed; and I'm sort-of expecting this to just be a "get the ball rolling" PR, since I feel you may wish to prod and tweak (especially around what happens with the Makefile and benchmarking). I can drop the second commit if that's going too far into the future.

Fixes #27.

assert_eq!(Atom::from_str("").to_string(), "".to_string());
assert_eq!(Atom::from_str("body").to_string(), "body".to_string());
assert_eq!(Atom::from_str("asdfghjk").to_string(), "asdfghjk".to_string());
assert_eq!(Atom::from_str("").to_string(), "atom!()".to_string());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.to_string now uses the Show impl for a type, and thus this changed; it may not be the correct way you wish to handle this.

@kmcallister
Copy link
Contributor

Merged via cherry-pick. Thanks!!

@huonw huonw deleted the cargoify branch August 25, 2014 21:02
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