Skip to content

Commit

Permalink
Rename crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowneee committed Aug 20, 2024
1 parent a18a30f commit d30239d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
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",
]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `speka`
# `speka` - OpenAPI generation utilities

[![Crates.io](https://img.shields.io/crates/v/speka)](https://crates.io/crates/speka)
[![docs.rs](https://img.shields.io/docsrs/speka/latest)](https://docs.rs/speka/latest)
Expand Down
1 change: 1 addition & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ publish_crate() {

publish_crate speka-macro
publish_crate speka
publish_crate speka-axum
14 changes: 14 additions & 0 deletions speka-axum/Cargo.toml
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"] }
14 changes: 14 additions & 0 deletions speka-axum/src/lib.rs
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);
}
}

0 comments on commit d30239d

Please sign in to comment.