|
| 1 | +<div id='crates-heading'> |
| 2 | + {{svg-jar 'circle-with-i'}} |
| 3 | + <h1>Crates.io Package Policies</h1> |
| 4 | +</div> |
| 5 | + |
| 6 | +<p> |
| 7 | +In general, these policies are guidelines. Problems are often contextual, and |
| 8 | +exceptional circumstances sometimes require exceptional measures. We plan to |
| 9 | +continue to clarify and expand these rules over time as new circumstances |
| 10 | +arise. If your problem is not described below, consider <a |
| 11 | +href='mailto:[email protected]'>sending us an email</ a>. |
| 12 | +</p> |
| 13 | + |
| 14 | +<h2 id='package-ownership'><a href='#package-ownership'>Package Ownership</a></h2> |
| 15 | + |
| 16 | +<p> |
| 17 | +We have a first-come, first-served policy on crate names. Upon publishing a |
| 18 | +package, the publisher will be made owner of the package on Crates.io. |
| 19 | +</p> |
| 20 | + |
| 21 | +<p> |
| 22 | +If someone wants to take over a package, and the previous owner agrees, the |
| 23 | +existing maintainer can add them as an owner, and the new maintainer can remove |
| 24 | +them. If necessary, the team may reach out to inactive maintainers and help |
| 25 | +mediate the process of ownership transfer. |
| 26 | +</p> |
| 27 | + |
| 28 | +<h2 id='removal'><a href='#removal'>Removal</a></h2> |
| 29 | + |
| 30 | +<p> |
| 31 | +Many questions are specialized instances of a more general form: “Under what |
| 32 | +circumstances can a package be removed from Crates.io?” |
| 33 | +</p> |
| 34 | + |
| 35 | +<p> |
| 36 | +The short version is that packages are first-come, first-served, and we won’t |
| 37 | +attempt to get into policing what exactly makes a legitimate package. We will |
| 38 | +do what the law requires us to do, and address flagrant violations of the Rust |
| 39 | +Code of Conduct. |
| 40 | +</p> |
| 41 | + |
| 42 | +<h3 id='squatting'><a href='#squatting'>Squatting</a></h3> |
| 43 | + |
| 44 | +<p> |
| 45 | +We do not have any policies to define 'squatting', and so will not hand over |
| 46 | +ownership of a package for that reason. |
| 47 | +</p> |
| 48 | + |
| 49 | +<h3 id='the-law'><a href='#the-law'>The Law</a></h3> |
| 50 | + |
| 51 | +<p> |
| 52 | +For issues such as DMCA violations, trademark and copyright infringement, |
| 53 | +Crates.io will respect Mozilla Legal’s decisions with regards to content that |
| 54 | +is hosted. |
| 55 | +</p> |
| 56 | + |
| 57 | +<h3 id='code-of-conduct'><a href='#code-of-conduct'>Code of Conduct</a></h3> |
| 58 | + |
| 59 | +<p> |
| 60 | +The Rust project has a <a href='https://www.rust-lang.org/conduct.html'>Code |
| 61 | +of Conduct</a> which governs appropriate conduct for the Rust community. In |
| 62 | +general, any content on Crates.io that violates the Code of Conduct may be |
| 63 | +removed. Here, content can refer to but is not limited to: |
| 64 | +</p> |
| 65 | + |
| 66 | +<ul> |
| 67 | + <li>Package Name</li> |
| 68 | + <li>Package Metadata</li> |
| 69 | + <li>Documentation</li> |
| 70 | + <li>Code</li> |
| 71 | +</ul> |
| 72 | + |
| 73 | +<p> |
| 74 | +There are two important, related aspects: |
| 75 | +</p> |
| 76 | + |
| 77 | +<ul> |
| 78 | + <li> |
| 79 | + We will not be pro-actively monitoring the site for these kinds of |
| 80 | + violations, but relying on the community to draw them to our attention. |
| 81 | + </li> |
| 82 | + |
| 83 | + <li> |
| 84 | + “Does this violate the Code of Conduct” is a contextual question that |
| 85 | + cannot be directly answered in the hypothetical sense. All of the details |
| 86 | + must be taken into consideration in these kinds of situations. |
| 87 | + </li> |
| 88 | +</ul> |
| 89 | + |
| 90 | +<h2 id='security'><a href='#security'>Security</a></h2> |
| 91 | + |
| 92 | +<p> |
| 93 | +Cargo and crates.io are projects that are governed by the Rust Programming |
| 94 | +Language Team. Safety is one of the core principles of Rust, and to that end, |
| 95 | +we would like to ensure that cargo and crates.io have secure implementations. |
| 96 | +To learn more about disclosing security vulnerabilities, please reference the |
| 97 | +<a href='https://www.rust-lang.org/security.html'>Rust Security policy</a> for |
| 98 | +more details. |
| 99 | +</p> |
| 100 | + |
| 101 | +<p> |
| 102 | +Thank you for taking the time to responsibly disclose any issues you find. |
| 103 | +</p> |
0 commit comments