]> git.lizzy.rs Git - rust.git/blob - LICENSE.txt
Add more standard c lib llvm intrinsics.
[rust.git] / LICENSE.txt
1 Short version for non-lawyers:
2
3 This work licensed under MIT-like terms.
4
5
6 Long version follows:
7
8 The collective work presented here includes packages written
9 by third parties.  The following third party packages are
10 included:
11
12
13 * The ISAAC pseudo random number generation package. Code
14   for this package is found in the src/rt/isaac directory,
15   within this distribution. This package is redistributed
16   under the following terms, as noted in its source:
17
18     By Bob Jenkins, 1996, Public Domain
19
20
21 * The ACME large integer package. Code for this package is
22   found in the src/rt/bigint directory, within this
23   distribution. This package is redistributed under the
24   following terms, as noted in its source:
25
26     Copyright © 2000 by Jef Poskanzer <jef@mail.acme.com>.
27     All rights reserved.
28
29     Redistribution and use in source and binary forms, with
30     or without modification, are permitted provided that the
31     following conditions are met:
32
33     1. Redistributions of source code must retain the above
34        copyright notice, this list of conditions and the
35        following disclaimer.
36
37     2. Redistributions in binary form must reproduce the
38        above copyright notice, this list of conditions and
39        the following disclaimer in the documentation and/or
40        other materials provided with the distribution.
41
42     THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS
43     ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
44     INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
45     MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
46     DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR
47     CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
48     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
49     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
51     PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
52     ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
53     LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
55     IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56
57
58 * The UTHASH hash table package. Code for this package is
59   found in the src/rt/uthash directory within this
60   distribution. This package is redistributed under the
61   following terms, as noted in its source:
62
63     Copyright (c) 2003-2009, Troy D. Hanson
64     http://uthash.sourceforge.net All rights reserved.
65
66     Redistribution and use in source and binary forms, with
67     or without modification, are permitted provided that the
68     following conditions are met:
69
70         * Redistributions of source code must retain the
71           above copyright notice, this list of conditions
72           and the following disclaimer.
73
74     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
75     CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
76     WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
77     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
78     PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
79     COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
80     DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
81     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
82     PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
83     USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
84     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
85     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
86     NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
87     USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
88     OF SUCH DAMAGE.
89
90
91 * Two header files that are part of the Valgrind
92   package. These files are found at src/rt/vg/valgrind.h and
93   src/rt/vg/memcheck.h, within this distribution. These files
94   are redistributed under the following terms, as noted in
95   them:
96
97   for src/rt/vg/valgrind.h:
98
99     This file is part of Valgrind, a dynamic binary
100     instrumentation framework.
101
102     Copyright (C) 2000-2010 Julian Seward.  All rights
103     reserved.
104
105     Redistribution and use in source and binary forms, with
106     or without modification, are permitted provided that the
107     following conditions are met:
108
109     1. Redistributions of source code must retain the above
110        copyright notice, this list of conditions and the
111        following disclaimer.
112
113     2. The origin of this software must not be
114        misrepresented; you must not claim that you wrote the
115        original software.  If you use this software in a
116        product, an acknowledgment in the product
117        documentation would be appreciated but is not
118        required.
119
120     3. Altered source versions must be plainly marked as
121        such, and must not be misrepresented as being the
122        original software.
123
124     4. The name of the author may not be used to endorse or
125        promote products derived from this software without
126        specific prior written permission.
127
128     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
129     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
130     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
131     AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
132     NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
133     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
134     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
135     PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
136     USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
137     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
138     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
139     NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
140     USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
141     OF SUCH DAMAGE.
142
143   for src/rt/vg/memcheck.h:
144
145     This file is part of MemCheck, a heavyweight Valgrind
146     tool for detecting memory errors.
147
148     Copyright (C) 2000-2010 Julian Seward.  All rights
149     reserved.
150
151     Redistribution and use in source and binary forms, with
152     or without modification, are permitted provided that the
153     following conditions are met:
154
155     1. Redistributions of source code must retain the above
156        copyright notice, this list of conditions and the
157        following disclaimer.
158
159     2. The origin of this software must not be
160        misrepresented; you must not claim that you wrote the
161        original software.  If you use this software in a
162        product, an acknowledgment in the product
163        documentation would be appreciated but is not
164        required.
165
166     3. Altered source versions must be plainly marked as
167        such, and must not be misrepresented as being the
168        original software.
169
170     4. The name of the author may not be used to endorse or
171        promote products derived from this software without
172        specific prior written permission.
173
174     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
175     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
176     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
177     AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
178     NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
179     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
180     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
181     PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
182     USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
183     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
184     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
185     NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
186     USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
187     OF SUCH DAMAGE.
188
189
190 * The auxiliary file src/etc/pkg/modpath.iss contains a
191   library routine compiled, by Inno Setup, into the Windows
192   installer binary. This file is licensed under the LGPL,
193   but, in our legal interpretation, this does not affect the
194   aggregate "collected work" license of the Rust
195   distribution (MIT) nor any other components of it. We
196   believe that the terms governing distribution of the
197   binary Windows installer built from modpath.iss are
198   therefore LGPL, but not the terms governing distribution
199   of any of the files installed by such an installer (such
200   as the Rust compiler or runtime libraries themselves).
201
202
203 * The libuv asynchronous I/O library. Code for this package
204   is found in the src/libuv directory, within this
205   distribution. This package is redistributed under the
206   following terms, as noted in its source:
207
208     Copyright Joyent, Inc. and other Node contributors. All
209     rights reserved.  Permission is hereby granted, free of
210     charge, to any person obtaining a copy of this software
211     and associated documentation files (the "Software"), to
212     deal in the Software without restriction, including
213     without limitation the rights to use, copy, modify,
214     merge, publish, distribute, sublicense, and/or sell
215     copies of the Software, and to permit persons to whom
216     the Software is furnished to do so, subject to the
217     following conditions:
218
219     The above copyright notice and this permission notice
220     shall be included in all copies or substantial portions
221     of the Software.
222
223     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
224     ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
225     TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
226     PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
227     SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
228     CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
229     OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
230     IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
231     DEALINGS IN THE SOFTWARE.
232
233
234 * Additional libraries included in libuv carry separate
235   BSD-compatible licenses. See src/libuv/LICENSE for
236   details.
237
238 * The src/rt/miniz.c file, carrying an implementation of
239   RFC1950/RFC1951 DEFLATE, by Rich Geldreich
240   <richgel99@gmail.com>. All uses of this file are
241   permitted by the embedded "unlicense" notice
242   (effectively: public domain with warranty disclaimer).
243
244 * LLVM and Clang. Code for this package is found in
245   src/llvm.
246
247     Copyright (c) 2003-2012 University of Illinois at
248     Urbana-Champaign.  All rights reserved.
249
250     Developed by:
251
252         LLVM Team
253
254         University of Illinois at Urbana-Champaign
255
256         http://llvm.org
257
258     Permission is hereby granted, free of charge, to any
259     person obtaining a copy of this software and associated
260     documentation files (the "Software"), to deal with the
261     Software without restriction, including without
262     limitation the rights to use, copy, modify, merge,
263     publish, distribute, sublicense, and/or sell copies of
264     the Software, and to permit persons to whom the Software
265     is furnished to do so, subject to the following
266     conditions:
267
268         * Redistributions of source code must retain the
269           above copyright notice, this list of conditions
270           and the following disclaimers.
271
272         * Redistributions in binary form must reproduce the
273           above copyright notice, this list of conditions
274           and the following disclaimers in the documentation
275           and/or other materials provided with the
276           distribution.
277
278         * Neither the names of the LLVM Team, University of
279           Illinois at Urbana-Champaign, nor the names of its
280           contributors may be used to endorse or promote
281           products derived from this Software without
282           specific prior written permission.
283
284     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
285     ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
286     TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
287     PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT
288     SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE
289     FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
290     ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
291     OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
292     OTHER DEALINGS WITH THE SOFTWARE.
293
294
295 * Additional libraries included in LLVM carry separate
296   BSD-compatible licenses. See src/llvm/LICENSE.txt for
297   details.
298
299
300 * Portions of the FFI code for interacting with the native ABI
301   is derived from the Clay programming language, which carries
302   the following license.
303
304     Copyright (C) 2008-2010 Tachyon Technologies.
305     All rights reserved.
306
307     Redistribution and use in source and binary forms, with
308     or without modification, are permitted provided that the
309     following conditions are met:
310
311     1. Redistributions of source code must retain the above
312        copyright notice, this list of conditions and the
313        following disclaimer.
314
315     2. Redistributions in binary form must reproduce the
316        above copyright notice, this list of conditions and
317        the following disclaimer in the documentation and/or
318        other materials provided with the distribution.
319
320     THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR
321     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
322     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
323     PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
324     DEVELOPERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
325     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
326     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
327     PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
328     USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
329     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
330     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
331     NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
332     USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
333     OF SUCH DAMAGE.
334
335
336 * Additional copyright may be retained by contributors other
337   than Mozilla or the parties enumerated in this file. Such
338   copyright can be determined on a case-by-case basis by
339   examining the author of each portion of a file in the
340   revision-control commit records of the project, or by
341   consulting representative comments claiming copyright
342   ownership for a file.
343
344   For example, the text:
345
346       "Copyright (c) 2011 Google Inc."
347
348   appears in some files, and these files thereby denote
349   that their author and copyright-holder is Google Inc.
350
351   In all such cases, the absence of explicit licensing text
352   indicates that the contributor chose to license their
353   work for distribution under identical terms to those
354   Mozilla has chosen for the collective work, enumerated
355   below.  The only difference is the retention of copyright
356   itself, held by the contributor.
357
358
359 The remaining code and documentation in the collective work
360 presented here, as well as the collective work itslf, is
361 distributed under the following terms ("The Rust License"):
362
363     Copyright (c) 2006-2012 Graydon Hoare
364     Copyright (c) 2009-2012 Mozilla Foundation
365
366     Permission is hereby granted, free of charge, to any
367     person obtaining a copy of this software and associated
368     documentation files (the "Software"), to deal in the
369     Software without restriction, including without
370     limitation the rights to use, copy, modify, merge,
371     publish, distribute, sublicense, and/or sell copies of
372     the Software, and to permit persons to whom the Software
373     is furnished to do so, subject to the following
374     conditions:
375
376     The above copyright notice and this permission notice
377     shall be included in all copies or substantial portions
378     of the Software.
379
380     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
381     ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
382     TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
383     PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
384     SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
385     CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
386     OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
387     IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
388     DEALINGS IN THE SOFTWARE.