Browse Source

Add copyright & license

master
Matteo Cypriani 2 years ago
parent
commit
3f03a6c37b
14 changed files with 285 additions and 0 deletions
  1. 20
    0
      COPYING
  2. 1
    0
      Cargo.toml
  3. 22
    0
      src/cue_sheet.rs
  4. 22
    0
      src/error.rs
  5. 22
    0
      src/lib.rs
  6. 22
    0
      src/main.rs
  7. 22
    0
      src/metadata/cuex.rs
  8. 22
    0
      src/metadata/daox.rs
  9. 22
    0
      src/metadata/metadata.rs
  10. 22
    0
      src/metadata/mod.rs
  11. 22
    0
      src/metadata/mtyp.rs
  12. 22
    0
      src/metadata/readers.rs
  13. 22
    0
      src/metadata/sinf.rs
  14. 22
    0
      src/raw_audio.rs

+ 20
- 0
COPYING View File

@@ -0,0 +1,20 @@
1
+Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining
4
+a copy of this software and associated documentation files (the
5
+"Software"), to deal in the Software without restriction, including
6
+without limitation the rights to use, copy, modify, merge, publish,
7
+distribute, sublicense, and/or sell copies of the Software, and to
8
+permit persons to whom the Software is furnished to do so, subject to
9
+the following conditions:
10
+
11
+The above copyright notice and this permission notice shall be
12
+included in all copies or substantial portions of the Software.
13
+
14
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 1
- 0
Cargo.toml View File

@@ -2,6 +2,7 @@
2 2
 name = "nrgrip"
3 3
 version = "0.1.0"
4 4
 authors = ["Matteo Cypriani <mcy@lm7.fr>"]
5
+license = "MIT"
5 6
 
6 7
 [[bin]]
7 8
 name = "nrgrip"

+ 22
- 0
src/cue_sheet.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! Module to extract the cue sheet from the NRG metadata.
2 24
 
3 25
 use std::io::Write;

+ 22
- 0
src/error.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! Error type for NRGrip.
2 24
 
3 25
 use std::error::Error;

+ 22
- 0
src/lib.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! Extracts audio data and metadata from an NRG image of an audio CD.
2 24
 
3 25
 pub mod error;

+ 22
- 0
src/main.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 use std::env;
2 24
 use std::fs::File;
3 25
 use std::process;

+ 22
- 0
src/metadata/cuex.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! NRG CUEX chunk data structure and associated functions.
2 24
 
3 25
 use std::fmt;

+ 22
- 0
src/metadata/daox.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! NRG DAOX chunk data structure and associated functions.
2 24
 
3 25
 use std::fmt;

+ 22
- 0
src/metadata/metadata.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! NRG metadata structure, storing the contents of all of the NRG chunks.
2 24
 
3 25
 use std::fmt;

+ 22
- 0
src/metadata/mod.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! Module to read and store the metadata from an NRG image file.
2 24
 
3 25
 use std::fs::File;

+ 22
- 0
src/metadata/mtyp.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! NRG MTYP chunk data structure and associated functions.
2 24
 
3 25
 use std::fmt;

+ 22
- 0
src/metadata/readers.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! Miscellaneous functions to read fixed-size data from a file.
2 24
 
3 25
 use std::fs::File;

+ 22
- 0
src/metadata/sinf.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! NRG SINF chunk data structure and associated functions.
2 24
 
3 25
 use std::fmt;

+ 22
- 0
src/raw_audio.rs View File

@@ -1,3 +1,25 @@
1
+// This file is part of the NRGrip project.
2
+//
3
+// Copyright (c) 2016 Matteo Cypriani <mcy@lm7.fr>
4
+//
5
+// Permission is hereby granted, free of charge, to any person obtaining a copy
6
+// of this software and associated documentation files (the "Software"), to
7
+// deal in the Software without restriction, including without limitation the
8
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
+// sell copies of the Software, and to permit persons to whom the Software is
10
+// furnished to do so, subject to the following conditions:
11
+//
12
+// The above copyright notice and this permission notice shall be included in
13
+// all copies or substantial portions of the Software.
14
+//
15
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+// IN THE SOFTWARE.
22
+
1 23
 //! Module to extract the raw audio data from an NRG image file.
2 24
 
3 25
 use std::fs::File;

Loading…
Cancel
Save