-
Notifications
You must be signed in to change notification settings - Fork 17
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
Pre-1.0 API Guidelines Audit #26
Comments
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. |
Merged
bors bot
added a commit
that referenced
this issue
Jun 30, 2020
35: Prepare v1.0.0 r=jonas-schievink a=adamgreig I'm opening this PR so we can move discussions forward around v1; I am very happy to have some changes or more feedback before we go ahead with this. Essentially, this crate is now just `CriticalSection` and `Mutex`, which are widely used and probably won't change without becoming something totally new (e.g. the new mutex-trait crate). There are some known issues (especially CSs don't disable NMI or HardFault) which perhaps could be documented and understood better, but I think are all platform-specific (cortex-m). In this PR: * Remove `StaticResource`: it's not been released in any published version so hasn't been proven yet; we could re-add it in a later release or separate crate * Remove `deny(warnings)` and instead deny them in CI * Update version to 1.0.0 We'll still want to close off #26. Otherwise I think everything from #22 is covered. Co-authored-by: Adam Greig <[email protected]>
Closed by #35. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)readme, keywords, categories
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)The text was updated successfully, but these errors were encountered: