polyphony-chat / chorus

A Rust library for interacting with multiple Polyphony- and Spacebar-Compatible instances at once.
https://crates.io/crates/chorus
Mozilla Public License 2.0
17 stars 7 forks source link

Rust API Guidelines Checklist #155

Open bitfl0wer opened 1 year ago

bitfl0wer commented 1 year ago

The following checklist should be completed for a release build of Chorus. The list is sourced from here: https://rust-lang.github.io/api-guidelines/checklist.html

These so called API Guidelines should not be forced upon the project, but be just that: a set of guidelines to look up to and apply whereever it makes sense.

kozabrada123 commented 11 months ago

Updated so hyperlinks to individual guidelines work

kozabrada123 commented 11 months ago

I might take a look at this while taking a break from voice

kozabrada123 commented 11 months ago

https://github.com/polyphony-chat/chorus/blob/a3f8a0492b4f606adfd9b66abcf39d15ef3f3835/src/api/guilds/guilds.rs#L194-L201

This could probably be triaged; we have a lot of functions which are Something::get() or Something::get_some_stuff() which fetch resources on the server. In theory these could violate C_GETTER, but I wouldn't say they are getters, more so I would excuse the get_* since they send GET requests