Skip to content

Commit 11a2bd3

Browse files
committed
Preparing for crate publication
1 parent c627feb commit 11a2bd3

File tree

4 files changed

+53
-25
lines changed

4 files changed

+53
-25
lines changed

Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name = "range-encoding"
33
version = "0.1.0"
44
authors = ["David Teller <[email protected]>"]
55
description = "An implementation of range encoding (entropy coding), extracted from Opus."
6+
readme = "README.md"
7+
homepage = "https://github.com/binast/range-encoding-rs"
8+
repository = "https://github.com/binast/range-encoding-rs"
9+
keywords = ["compression", "opus", "entropy"]
10+
categories = ["algorithms", "compression"]
11+
license = "BSD-3"
12+
13+
[badges]
14+
travis-ci = { repository = "https://github.com/binast/range-encoding-rs", branch = "master" }
615

716
[dependencies]
817
libc = "*"

LICENSE

-22
This file was deleted.

LICENSE.opus

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic,
2+
Jean-Marc Valin, Timothy B. Terriberry,
3+
CSIRO, Gregory Maxwell, Mark Borgerding,
4+
Erik de Castro Lopo
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions
8+
are met:
9+
10+
- Redistributions of source code must retain the above copyright
11+
notice, this list of conditions and the following disclaimer.
12+
13+
- Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in the
15+
documentation and/or other materials provided with the distribution.
16+
17+
- Neither the name of Internet Society, IETF or IETF Trust, nor the
18+
names of specific contributors, may be used to endorse or promote
19+
products derived from this software without specific prior written
20+
permission.
21+
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
26+
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33+
34+
Opus is subject to the royalty-free patent licenses which are
35+
specified at:
36+
37+
Xiph.Org Foundation:
38+
https://datatracker.ietf.org/ipr/1524/
39+
40+
Microsoft Corporation:
41+
https://datatracker.ietf.org/ipr/1914/
42+
43+
Broadcom Corporation:
44+
https://datatracker.ietf.org/ipr/1526/

src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
extern crate libc;
22

3-
#[macro_use]
4-
extern crate log;
5-
63
pub mod opus {
74
/// A c2rust-ified version of the Opus range decoder.
85
mod imported_decode;

0 commit comments

Comments
 (0)