diff --git a/Cargo.lock b/Cargo.lock index 85e7069..f1cbf84 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,5 +3,5 @@ version = 3 [[package]] -name = "encdec" +name = "ende" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 378ef02..6bc881b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "encdec" +name = "ende" version = "0.1.0" edition = "2021" description = "A library for encoding/decoding unicode/utf-8/utf-16(ucs-2) code points." -repository = "https://github.com/FedericoBruzzone/encdec" -homepage = "https://github.com/FedericoBruzzone/encdec" +repository = "https://github.com/FedericoBruzzone/ende" +homepage = "https://github.com/FedericoBruzzone/ende" license = "GPL-3.0" readme = "README.md" keywords = ["encode", "decode", "utf8", "utf16", "unicode"] diff --git a/Justfile b/Justfile index 881e52e..e79f14f 100644 --- a/Justfile +++ b/Justfile @@ -1,7 +1,7 @@ # vim: set ft=make : set windows-powershell := true export RUST_BACKTRACE := "1" -project_name := "encdec" +project_name := "ende" _default: just --list --justfile {{justfile()}} diff --git a/README.md b/README.md index 929e57f..a733615 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ -[github-ci-linux]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-linux.yml -[github-ci-linux-shield]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-linux.yml/badge.svg -[github-ci-windows]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-windows.yml -[github-ci-windows-shield]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-windows.yml/badge.svg -[github-ci-macos]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-macos.yml -[github-ci-macos-shield]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-macos.yml/badge.svg -[crates-io]: https://crates.io/crates/encdec -[crates-io-shield]: https://img.shields.io/crates/v/encdec -[github-license]: https://github.com/FedericoBruzzone/encdec/blob/main/LICENSE -[github-license-shield]: https://img.shields.io/github/license/FedericoBruzzone/encdec -[total-lines]: https://github.com/FedericoBruzzone/encdec -[total-lines-shield]: https://tokei.rs/b1/github/FedericoBruzzone/encdec?type=Rust,Python -[creates-io-downloads]: https://crates.io/crates/encdec -[creates-io-downloads-shield]: https://img.shields.io/crates/d/encdec.svg -[dependents]: https://crates.io/crates/encdec/reverse_dependencies -[dependents-shield]: https://img.shields.io/librariesio/dependents/cargo/encdec -[documentation]: https://docs.rs/encdec -[documentation-shield]: https://docs.rs/encdec/badge.svg +[github-ci-linux]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-linux.yml +[github-ci-linux-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-linux.yml/badge.svg +[github-ci-windows]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-windows.yml +[github-ci-windows-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-windows.yml/badge.svg +[github-ci-macos]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-macos.yml +[github-ci-macos-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-macos.yml/badge.svg +[crates-io]: https://crates.io/crates/ende +[crates-io-shield]: https://img.shields.io/crates/v/ende +[github-license]: https://github.com/FedericoBruzzone/ende/blob/main/LICENSE +[github-license-shield]: https://img.shields.io/github/license/FedericoBruzzone/ende +[total-lines]: https://github.com/FedericoBruzzone/ende +[total-lines-shield]: https://tokei.rs/b1/github/FedericoBruzzone/ende?type=Rust,Python +[creates-io-downloads]: https://crates.io/crates/ende +[creates-io-downloads-shield]: https://img.shields.io/crates/d/ende.svg +[dependents]: https://crates.io/crates/ende/reverse_dependencies +[dependents-shield]: https://img.shields.io/librariesio/dependents/cargo/ende +[documentation]: https://docs.rs/ende +[documentation-shield]: https://docs.rs/ende/badge.svg [![GitHub CI Linux][github-ci-linux-shield]][github-ci-linux] [![GitHub CI Windows][github-ci-windows-shield]][github-ci-windows] @@ -112,9 +112,5 @@ This repository is licensed under the [Apache License 2.0](https://www.apache.or ## Contact -- Email: - - [federico.bruzzone.i@gmail.com] - - [federico.bruzzone@studenti.unimi.it] -- GitHub: - - [FedericoBruzzone](https://github.com/FedericoBruzzone) +If you have any questions, suggestions, or feedback, do not hesitate to [contact me](https://federicobruzzone.github.io/). diff --git a/src/bin/main.rs b/src/bin/main.rs index aa28326..3abfc68 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -1,8 +1,8 @@ -// use encdec::prelude::*; -use encdec::ucs2; -use encdec::unicode; -use encdec::utf16; -use encdec::utf8; +// use ende::prelude::*; +use ende::ucs2; +use ende::unicode; +use ende::utf16; +use ende::utf8; // cargo run --bin main fn main() { diff --git a/src/ucs2.rs b/src/ucs2.rs index 1b3803e..31b30be 100644 --- a/src/ucs2.rs +++ b/src/ucs2.rs @@ -67,7 +67,7 @@ fn print_ucs2_vec>>(ucs2_cp: T, binary_flag: bool) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xFFEE]; /// print_ucs2(&v); /// ``` @@ -91,7 +91,7 @@ pub fn print_ucs2>>(utf2_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xFFEE]; /// print_ucs2_b(&v); /// ``` @@ -118,7 +118,7 @@ pub fn print_ucs2_b>>(ucs2_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xFFEE]; // Array of code points in unicode /// let enc: Vec = encode_in_ucs2(&v); /// assert_eq!(enc, vec![0xFFEE]); @@ -149,7 +149,7 @@ pub fn encode_in_ucs2>>(unicode_cp: T) -> Vec { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xFFEE]; // Array of code points in UCS-2 /// let dec: Vec = decode_from_ucs2(&v); /// assert_eq!(dec, vec![0xFFEE]); diff --git a/src/unicode.rs b/src/unicode.rs index 4f68a17..831688e 100644 --- a/src/unicode.rs +++ b/src/unicode.rs @@ -70,7 +70,7 @@ pub fn check_code_point(code_point: u32) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0x10001]; /// print_unicode_b(&v); /// ``` @@ -96,7 +96,7 @@ pub fn print_unicode_b>>(unicode_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0x10001]; /// print_unicode(&v); /// ``` diff --git a/src/utf16.rs b/src/utf16.rs index 549f974..9542cd8 100644 --- a/src/utf16.rs +++ b/src/utf16.rs @@ -188,7 +188,7 @@ fn print_utf16_vec>>(utf16_cp: T, binary_flag: bool) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xD800, 0xDC00]; /// print_utf16(&v); /// ``` @@ -212,7 +212,7 @@ pub fn print_utf16>>(utf16_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xD800, 0xDC00]; /// print_utf16(&v); /// ``` @@ -240,7 +240,7 @@ pub fn print_utf16_b>>(utf16_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0x10001]; // Array of code points in unicode /// let enc: Vec = encode_in_utf16(&v); /// assert_eq!(enc, vec![0xD800, 0xDC01]); @@ -269,7 +269,7 @@ pub fn encode_in_utf16>>(unicode_cp: T) -> Vec { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xD800, 0xDC01]; // Array of code points in UTF-16 /// let dec: Vec = decode_from_utf16(&v); /// assert_eq!(dec, vec![0x10001]); diff --git a/src/utf8.rs b/src/utf8.rs index 84eff6c..bb3a710 100644 --- a/src/utf8.rs +++ b/src/utf8.rs @@ -351,7 +351,7 @@ fn print_utf8_vec>>(utf8_cp: T, binary_flag: bool) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xf0, 0x90, 0x80, 0x81]; /// print_utf8(&v); /// ``` @@ -375,7 +375,7 @@ pub fn print_utf8>>(uft8_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xf0, 0x90, 0x80, 0x81]; /// print_utf8_b(&v); /// ``` @@ -403,7 +403,7 @@ pub fn print_utf8_b>>(uft8_cp: T) { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0x10001]; // Array of code points in unicode /// let enc: Vec = encode_in_utf8(&v); /// assert_eq!(enc, vec![0xf0, 0x90, 0x80, 0x81]); @@ -432,7 +432,7 @@ pub fn encode_in_utf8>>(unicode_cp: T) -> Vec { /// /// # Example /// ```rust -/// use encdec::prelude::*; +/// use ende::prelude::*; /// let v: Vec = vec![0xf0, 0x90, 0x80, 0x81]; // Array of code points in UTF-8 /// let dec: Vec = decode_from_utf8(&v); /// assert_eq!(dec, vec![0x10001]); diff --git a/tests/test_ucs2.rs b/tests/test_ucs2.rs index 4c95ff1..5043bcf 100644 --- a/tests/test_ucs2.rs +++ b/tests/test_ucs2.rs @@ -1,4 +1,4 @@ -use encdec::prelude::*; +use ende::prelude::*; #[test] fn test_ucs2_encode_in_ucs2_1() { diff --git a/tests/test_utf16.rs b/tests/test_utf16.rs index 7dee8cb..e20df4a 100644 --- a/tests/test_utf16.rs +++ b/tests/test_utf16.rs @@ -1,4 +1,4 @@ -use encdec::prelude::*; +use ende::prelude::*; #[test] fn test_utf16_encode_in_utf16_1() { diff --git a/tests/test_utf8.rs b/tests/test_utf8.rs index 7b0ff2e..04d8028 100644 --- a/tests/test_utf8.rs +++ b/tests/test_utf8.rs @@ -1,4 +1,4 @@ -use encdec::prelude::*; +use ende::prelude::*; #[test] fn test_utf8_encode_in_utf8_1() {