diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..41acacf --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# 0.2.3 +- Refactored the detection of which methods exist, + we actually parse the file now instead of just checking that it contains `pub async #method_name` + +# 0.2.2 +- Re-licensed to MIT + +# 0.2.1 +- Documentation & test improvements + +# 0.2.0 +- Generate module imports instead of `include!`ing, so rust-analyzer works. + +# 0.1.0 +- MVP adapted from https://github.com/richardanaya/axum-folder-router-htmx diff --git a/Cargo.toml b/Cargo.toml index 88ad1ca..a70777f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ path = "./src/lib.rs" proc-macro = true [dependencies] -syn = "2.0" +syn = { version = "2.0", features = ["full"] } quote = "1.0" proc-macro2 = "1.0" glob = "0.3" diff --git a/src/lib.rs b/src/lib.rs index 19026cb..bf40c86 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -296,7 +296,6 @@ pub fn folder_router(input: TokenStream) -> TokenStream { /// ``` /// /// it returns: `vec!["get"]` -/// fn methods_for_route(route_path: &PathBuf) -> Vec<&'static str> { // Read the file content let file_content = match fs::read_to_string(route_path) {