|
| 1 | +# Playground crate inclusion policy |
| 2 | + |
| 3 | +The playground selects a number of root crates to include: |
| 4 | + |
| 5 | +- The top 100 crates based on [all time downloads][] |
| 6 | +- Crates from the [Rust cookbook][] |
| 7 | + |
| 8 | +The latest stable version of these crates are available, as well as |
| 9 | +whatever dependencies these crates require. |
| 10 | + |
| 11 | +## Why is there a policy? |
| 12 | + |
| 13 | +The number of crates must be restricted because time and space are |
| 14 | +limited resources and the playground is a volunteer-supported open source |
| 15 | +project. It would be infeasible to provide every possible crate. |
| 16 | + |
| 17 | +This inclusion policy is used to avoid "playing favorites" for which |
| 18 | +crates are available. Hand-picking crates will lead to resentment |
| 19 | +about which crates were not included between the playground |
| 20 | +maintainers and crate authors or even the broader Rust community. |
| 21 | +Neither of these outcomes is desired. |
| 22 | + |
| 23 | +## Exclusion policy |
| 24 | + |
| 25 | +Occasionally, some crates that would otherwise meet the above criteria |
| 26 | +will not be available on the playground. A non-exhaustive list of |
| 27 | +reasons is: |
| 28 | + |
| 29 | +- Does not compile on Linux |
| 30 | +- Does not compile on the stable release channel |
| 31 | +- Does not compile due to invalid feature flag selection |
| 32 | + |
| 33 | +In these cases, we will temporarily exclude the crate to allow the |
| 34 | +playground to continue to be updated. We usually also notify the crate |
| 35 | +maintainers so they can adjust their crates and be re-included. |
| 36 | + |
| 37 | +## I don't like the current system! |
| 38 | + |
| 39 | +We are open to well-reasoned [alternate algorithms][], but be aware |
| 40 | +that any proposal would likely be expected to also provide the |
| 41 | +majority of implementation work. |
| 42 | + |
| 43 | +[all time downloads]: https://crates.io/crates?sort=downloads |
| 44 | +[Rust cookbook]: https://rust-lang-nursery.github.io/rust-cookbook/ |
| 45 | +[alternate algorithms]: https://github.com/integer32llc/rust-playground/issues/101 |
0 commit comments