prepare for publishing
This commit is contained in:
parent
539700ad75
commit
7f103a2435
|
@ -1,3 +1,3 @@
|
|||
[workspace]
|
||||
resolver = "2"
|
||||
members = [ "macros", "torn-api", "torn-key-pool" ]
|
||||
members = [ "torn-api-macros", "torn-api", "torn-key-pool" ]
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
[package]
|
||||
name = "macros"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
syn = { version = "1.0", features = [ "extra-traits" ] }
|
||||
quote = "1.0"
|
||||
convert_case = "0.5"
|
17
torn-api-macros/Cargo.toml
Normal file
17
torn-api-macros/Cargo.toml
Normal file
|
@ -0,0 +1,17 @@
|
|||
[package]
|
||||
name = "torn-api-macros"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["Pyrit [2111649]"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
homepage = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
description = "Macros implementation of #[derive(ApiCategory)]"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
syn = { version = "1.0", features = [ "extra-traits" ] }
|
||||
quote = "1.0"
|
||||
convert_case = "0.5"
|
|
@ -2,6 +2,11 @@
|
|||
name = "torn-api"
|
||||
version = "0.3.2"
|
||||
edition = "2021"
|
||||
authors = ["Pyrit [2111649]"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
homepage = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
description = "Torn API bindings for rust"
|
||||
|
||||
[features]
|
||||
default = [ "reqwest" ]
|
||||
|
@ -19,12 +24,12 @@ num-traits = "0.2"
|
|||
reqwest = { version = "0.11", default-features = false, features = [ "json" ], optional = true }
|
||||
awc = { version = "3", default-features = false, optional = true }
|
||||
|
||||
macros = { path = "../macros" }
|
||||
torn-api-macros = { path = "../torn-api-macros", version = "0.1" }
|
||||
|
||||
[dev-dependencies]
|
||||
actix-rt = { version = "2.7.0" }
|
||||
dotenv = "0.15.0"
|
||||
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
||||
tokio-test = "0.4.2"
|
||||
reqwest = { version = "*", default-features = true }
|
||||
awc = { version = "*", features = [ "rustls" ] }
|
||||
reqwest = { version = "0.11", default-features = true }
|
||||
awc = { version = "3", features = [ "rustls" ] }
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::collections::BTreeMap;
|
|||
|
||||
use serde::Deserialize;
|
||||
|
||||
use macros::ApiCategory;
|
||||
use torn_api_macros::ApiCategory;
|
||||
|
||||
#[derive(Debug, Clone, Copy, ApiCategory)]
|
||||
#[api(category = "faction")]
|
||||
|
|
|
@ -4,7 +4,7 @@ use serde::{
|
|||
Deserialize, Deserializer,
|
||||
};
|
||||
|
||||
use macros::ApiCategory;
|
||||
use torn_api_macros::ApiCategory;
|
||||
|
||||
use super::de_util;
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
name = "torn-key-pool"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
repository = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
homepage = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
description = "A generalizes API key pool for torn-api"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
@ -12,7 +16,7 @@ reqwest = [ "dep:reqwest", "torn-api/reqwest" ]
|
|||
awc = [ "dep:awc", "torn-api/awc" ]
|
||||
|
||||
[dependencies]
|
||||
torn-api = { path = "../torn-api", default-features = false }
|
||||
torn-api = { path = "../torn-api", default-features = false, version = "0.3" }
|
||||
async-trait = "0.1"
|
||||
thiserror = "1"
|
||||
|
||||
|
@ -25,9 +29,9 @@ awc = { version = "3", default-features = false, optional = true }
|
|||
|
||||
[dev-dependencies]
|
||||
torn-api = { path = "../torn-api", features = [ "reqwest" ] }
|
||||
sqlx = { version = "*", features = [ "runtime-tokio-rustls" ] }
|
||||
sqlx = { version = "0.6", features = [ "runtime-tokio-rustls" ] }
|
||||
dotenv = "0.15.0"
|
||||
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
||||
tokio-test = "0.4.2"
|
||||
reqwest = { version = "*", default-features = true }
|
||||
awc = { version = "*", features = [ "rustls" ] }
|
||||
reqwest = { version = "0.11", default-features = true }
|
||||
awc = { version = "3", features = [ "rustls" ] }
|
||||
|
|
Loading…
Reference in a new issue