Closed rubberduck203 closed 4 years ago
The API will probably change significantly before 1.0, so maybe only check things regarding the manifest/licensing/etc here for now
I was thinking the same thing. I reset the progress as they’ll need re-reviewed anyway.
Closed by #35.
Summary
Per #22, we should audit the library against the API Guidelines prior to 1.0 to avoid making breaking changes after the fact.
The checklist is below. As items are reviewed, we can mark them as completed. New issues should be opened for items that fail the review.
https://rust-lang.github.io/api-guidelines/checklist.html
Rust API Guidelines Checklist
as_
,to_
,into_
conventions (C-CONV)iter
,iter_mut
,into_iter
(C-ITER)Copy
,Clone
,Eq
,PartialEq
,Ord
,PartialOrd
,Hash
,Debug
,Display
,Default
From
,AsRef
,AsMut
(C-CONV-TRAITS)FromIterator
andExtend
(C-COLLECT)Serialize
,Deserialize
(C-SERDE)Send
andSync
where possible (C-SEND-SYNC)Hex
,Octal
,Binary
formatting (C-NUM-FMT)R: Read
andW: Write
by value (C-RW-VALUE)?
, nottry!
, notunwrap
(C-QUESTION-MARK)Deref
andDerefMut
(C-DEREF)bool
orOption
(C-CUSTOM-TYPE)bitflags
, not enums (C-BITFLAG)Debug
(C-DEBUG)Debug
representation is never empty (C-DEBUG-NONEMPTY)