Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter documentation for quirks module #311
Comments
brson
added
the
help wanted
label
May 4, 2017
This comment has been minimized.
This comment has been minimized.
|
This module belong in Servo. It is only in the |
This comment has been minimized.
This comment has been minimized.
|
You could define a "unstable" feature for rust-url that reexports those private APIs. EDIT: Or hide the quirks module behind a feature flag so people usually don't encounter it. |
This comment has been minimized.
This comment has been minimized.
|
There is a fairly strong convention that "unstable" means "uses unstable features of the Rust language or standard library, requires a Nightly compiler". And making this module not compiled by default is technically a breaking change. |
This comment has been minimized.
This comment has been minimized.
dtolnay
commented
May 12, 2017
|
If this module does not belong in the url crate, how about: // This module is for Servo. Do not use this module outside of Servo.
#[doc(hidden)]
pub mod quirks;Or possibly, if Servo developers need to be able to see the docs: // This module is for Servo. Do not use this module outside of Servo.
#[cfg_attr(not(feature = "quirks"), doc(hidden))]
pub mod quirks; |
SimonSapin
removed
the
help wanted
label
Jun 14, 2017
SimonSapin
closed this
in
d794e04
Jun 14, 2017
This comment has been minimized.
This comment has been minimized.
|
I took your suggestion @dtolnay, thanks. |
brson commentedMay 4, 2017
The description is "Getters and setters for URL components implemented per https://url.spec.whatwg.org/#api", which seems like a reasonable thing, and then the next sentence is a strong warning not to use this module. A clearer lay-description of what this module is would be helpful.