Skip to content

Commit c9c1477

Browse files
Merge #1033 #1034
1033: Add /policies page r=carols10cents Moving the "Crates.io Package Policies" page from <http://doc.crates.io/policies.html>, which is hosted in `cargo` repo, here, as this is a website-related content and not related to the build-system. First step for <#1030> Next step will be to redirect the old URL to this new page. 1034: [header] Replace CARGO with crates.io r=carols10cents As Cargo documentation is being moved to <doc.rust-lang.org>, and to emphasis the difference between `crates.io` and `cargo`, we better not title the website as *CARGO* anymore. This is a quick fix for this, until we redirect `docs.crates.io` completely and fix the menus and links here. See <#1031>
3 parents 06f22af + 9fbe167 + d7441b2 commit c9c1477

File tree

3 files changed

+108
-4
lines changed

3 files changed

+108
-4
lines changed

app/router.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Router.map(function() {
4444
this.route('category_slugs');
4545
this.route('catchAll', { path: '*path' });
4646
this.route('team', { path: '/teams/:team_id' });
47+
this.route('policies');
4748
});
4849

4950
export default Router;

app/templates/application.hbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
{{/link-to}}
1313
{{#link-to "index"}}
1414
<h1>
15-
CARGO
16-
<span class="subtitle">packages for Rust</span>
15+
crates.io
16+
<span class="subtitle">Rust Package Registry</span>
1717
</h1>
1818
{{/link-to}}
1919

@@ -50,7 +50,7 @@
5050
<li><a href='http://doc.crates.io/environment-variables.html'>Environment Variables</a></li>
5151
<li><a href='http://doc.crates.io/source-replacement.html'>Source Replacement</a></li>
5252
<li><a href='http://doc.crates.io/external-tools.html'>External Tools</a></li>
53-
<li><a href='http://doc.crates.io/policies.html'>Policies</a></li>
53+
<li>{{#link-to 'policies'}}Policies{{/link-to}}</li>
5454
{{/rl-dropdown}}
5555
{{/rl-dropdown-container}}
5656
<span class="sep">|</span>
@@ -123,5 +123,5 @@
123123
<span class="sep">|</span>
124124
<a href='mailto:[email protected]'>Send us an email</a>
125125
<span class="sep">|</span>
126-
<a href='http://doc.crates.io/policies.html'>Policies</a>
126+
{{#link-to 'policies'}}Policies{{/link-to}}
127127
</div>

app/templates/policies.hbs

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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

Comments
 (0)