-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"./speka", | ||
"./speka-examples", | ||
"./speka-macro", | ||
"speka", | ||
"speka-examples", | ||
"speka-macro", | ||
"speka-axum", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ publish_crate() { | |
|
||
publish_crate speka-macro | ||
publish_crate speka | ||
publish_crate speka-axum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "speka" | ||
description = "Procedural macro for generating OpenAPI operation specification (using okapi)" | ||
version = "0.3.0-rc3" | ||
authors = ["Andrey Kononov [email protected]"] | ||
edition = "2021" | ||
license = "MIT" | ||
keywords = ["rust", "openapi", "swagger", "axum"] | ||
categories = ["web-programming"] | ||
readme = "../README.md" | ||
repository = "https://github.com/Flowneee/speka" | ||
|
||
[dependencies] | ||
speka = { path = "../speka", version = "0.3.0-rc3", features = ["axum"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |