Add finishing touches

This commit is contained in:
Ottatop 2024-01-21 23:07:10 -06:00
parent 111cc76fa5
commit 9acd0e5ce3
2 changed files with 8 additions and 4 deletions

View file

@ -1,19 +1,23 @@
[package] [package]
name = "pinnacle-api" name = "pinnacle-api"
version = "0.0.1" version = "0.0.2"
edition = "2021" edition = "2021"
authors = ["Ottatop <ottatop1227@gmail.com>"]
description = "The Rust implementation of the Pinnacle compositor's configuration API"
license = "MPL-2.0"
repository = "https://github.com/pinnacle-comp/pinnacle"
keywords = ["compositor", "pinnacle", "api", "config"]
categories = ["api-bindings", "config"]
[dependencies] [dependencies]
pinnacle-api-defs = { path = "../../pinnacle-api-defs" } pinnacle-api-defs = { path = "../../pinnacle-api-defs" }
pinnacle-api-macros = { path = "./pinnacle-api-macros" } pinnacle-api-macros = { path = "./pinnacle-api-macros" }
tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread", "net"] } tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread", "net"] }
# tokio-stream = { version = "0.1.14", features = ["net"] }
async-net = "2.0.0" async-net = "2.0.0"
async-compat = "0.2.3" async-compat = "0.2.3"
tonic = "0.10.2" tonic = "0.10.2"
tower = { version = "0.4.13", features = ["util"] } tower = { version = "0.4.13", features = ["util"] }
futures = "0.3.30" futures = "0.3.30"
# futures-lite = "2.2.0"
num_enum = "0.7.2" num_enum = "0.7.2"
xkbcommon = "0.7.0" xkbcommon = "0.7.0"

View file

@ -109,7 +109,7 @@ static OUTPUT: OnceLock<Output> = OnceLock::new();
static TAG: OnceLock<Tag> = OnceLock::new(); static TAG: OnceLock<Tag> = OnceLock::new();
/// A struct containing static references to all of the configuration structs. /// A struct containing static references to all of the configuration structs.
#[derive(Debug, Clone)] #[derive(Debug, Clone, Copy)]
pub struct ApiModules { pub struct ApiModules {
/// The [`Pinnacle`] struct /// The [`Pinnacle`] struct
pub pinnacle: &'static Pinnacle, pub pinnacle: &'static Pinnacle,