diff --git a/Cargo.toml b/Cargo.toml index 593cc10..42b63c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "gpt-auto-test" +name = "gpt-macro" version = "0.1.0" edition = "2021" diff --git a/README.md b/README.md index 9996509..694a8ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# gpt-auto-test +# gpt-macro ChatGPT powered Rust proc macro that generates code at compile-time. @@ -27,7 +27,7 @@ where `$STR_LIT` is a prompt string literal, and `$TOKEN_STREAM` is target code. Example: ```rust -use gpt_auto_test::auto_impl; +use gpt_macro::auto_impl; auto_impl! { "Return fizz if the number is divisible by 3, buzz if the number is divisible by 5, and fizzbuzz if the number is divisible by both 3 and 5." @@ -75,7 +75,7 @@ fn test_fizzbuzz() { See this example: ```rust -use gpt_auto_test::auto_test; +use gpt_macro::auto_test; #[auto_test(test_valid, test_div_by_zero)] fn div_u32(a: u32, b: u32) -> u32 { @@ -88,4 +88,4 @@ fn div_u32(a: u32, b: u32) -> u32 { ## License -gpt-auto-test is released under the MIT license. +gpt-macro is released under the MIT license. diff --git a/src/lib.rs b/src/lib.rs index 7844f8a..b723c16 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ mod internal; /// # Example /// /// ``` -/// use r#gpt_auto_test::auto_test; +/// use r#gpt_macro::auto_test; /// /// #[auto_test(test_valid, test_div_by_zero)] /// fn div_u32(a: u32, b: u32) -> u32 { @@ -38,7 +38,7 @@ pub fn auto_test(args: TokenStream, input: TokenStream) -> TokenStream { /// # Example /// /// ``` -/// use r#gpt_auto_test::auto_impl; +/// use r#gpt_macro::auto_impl; /// /// auto_impl! { /// "Return fizz if the number is divisible by 3, buzz if the number is divisible by 5, and fizzbuzz if the number is divisible by both 3 and 5." diff --git a/tests/auto_impl_fn.rs b/tests/auto_impl_fn.rs index 29ec1c6..8063c2e 100644 --- a/tests/auto_impl_fn.rs +++ b/tests/auto_impl_fn.rs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT // Akira Moroo 2023 -use gpt_auto_test::auto_impl; +use gpt_macro::auto_impl; auto_impl! { "Return fizz if the number is divisible by 3, buzz if the number is divisible by 5, and fizzbuzz if the number is divisible by both 3 and 5." diff --git a/tests/auto_test_fn.rs b/tests/auto_test_fn.rs index b2df8c0..b239a60 100644 --- a/tests/auto_test_fn.rs +++ b/tests/auto_test_fn.rs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT // Akira Moroo 2023 -use gpt_auto_test::auto_test; +use gpt_macro::auto_test; #[auto_test(test_valid, test_div_by_zero)] fn div_u32(a: u32, b: u32) -> u32 {