prepare for publishing
This commit is contained in:
parent
195733ff39
commit
2390da4e54
|
@ -1,3 +1,3 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
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"
|
name = "torn-api"
|
||||||
version = "0.3.2"
|
version = "0.3.2"
|
||||||
edition = "2021"
|
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]
|
[features]
|
||||||
default = [ "reqwest" ]
|
default = [ "reqwest" ]
|
||||||
|
@ -19,12 +24,12 @@ num-traits = "0.2"
|
||||||
reqwest = { version = "0.11", default-features = false, features = [ "json" ], optional = true }
|
reqwest = { version = "0.11", default-features = false, features = [ "json" ], optional = true }
|
||||||
awc = { version = "3", default-features = false, 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]
|
[dev-dependencies]
|
||||||
actix-rt = { version = "2.7.0" }
|
actix-rt = { version = "2.7.0" }
|
||||||
dotenv = "0.15.0"
|
dotenv = "0.15.0"
|
||||||
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
||||||
tokio-test = "0.4.2"
|
tokio-test = "0.4.2"
|
||||||
reqwest = { version = "*", default-features = true }
|
reqwest = { version = "0.11", default-features = true }
|
||||||
awc = { version = "*", features = [ "rustls" ] }
|
awc = { version = "3", features = [ "rustls" ] }
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::collections::BTreeMap;
|
||||||
|
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
use macros::ApiCategory;
|
use torn_api_macros::ApiCategory;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, ApiCategory)]
|
#[derive(Debug, Clone, Copy, ApiCategory)]
|
||||||
#[api(category = "faction")]
|
#[api(category = "faction")]
|
||||||
|
|
|
@ -4,7 +4,7 @@ use serde::{
|
||||||
Deserialize, Deserializer,
|
Deserialize, Deserializer,
|
||||||
};
|
};
|
||||||
|
|
||||||
use macros::ApiCategory;
|
use torn_api_macros::ApiCategory;
|
||||||
|
|
||||||
use super::de_util;
|
use super::de_util;
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
name = "torn-key-pool"
|
name = "torn-key-pool"
|
||||||
version = "0.2.1"
|
version = "0.2.1"
|
||||||
edition = "2021"
|
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
|
# 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" ]
|
awc = [ "dep:awc", "torn-api/awc" ]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
torn-api = { path = "../torn-api", default-features = false }
|
torn-api = { path = "../torn-api", default-features = false, version = "0.3" }
|
||||||
async-trait = "0.1"
|
async-trait = "0.1"
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
|
|
||||||
|
@ -25,9 +29,9 @@ awc = { version = "3", default-features = false, optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
torn-api = { path = "../torn-api", features = [ "reqwest" ] }
|
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"
|
dotenv = "0.15.0"
|
||||||
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
||||||
tokio-test = "0.4.2"
|
tokio-test = "0.4.2"
|
||||||
reqwest = { version = "*", default-features = true }
|
reqwest = { version = "0.11", default-features = true }
|
||||||
awc = { version = "*", features = [ "rustls" ] }
|
awc = { version = "3", features = [ "rustls" ] }
|
||||||
|
|
Loading…
Reference in a new issue