gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.36k stars 547 forks source link

[meta] follow Rust API guidelines #1254

Open kvark opened 7 years ago

kvark commented 7 years ago

Copied from https://github.com/brson/rust-api-guidelines

kvark commented 6 years ago

The scope of the issue atm is to make a pass over the HAL w.r.t. guidelines and file the relevant PRs or sub-issues.

mjadczak commented 6 years ago

We can check off C-CASE.

mjadczak commented 6 years ago

I submit that C-FEATURE can be checked off. The only feature in the core library crates is winit which follows the rule. The backend features in the examples also follow the rule (though perhaps should be renamed to use the full package name e.g. gfx-backend-metal instead of metal). Either way, those are only examples and probably won't be published as a package on crates.io anyway.

mjadczak commented 6 years ago

C-CONV and C-GETTER can now be checked off.

kvark commented 6 years ago

I checked off a few lines in the list. Also, I believe C-SEND-SYNC will be covered by #1820

kvark commented 5 years ago

Alright, I think there is a long road towards the guidelines, and we'll refine this in future versions. Removing the milestone.