Skip to content

Commit

Permalink
Improve metadata for hyprland-macros
Browse files Browse the repository at this point in the history
  • Loading branch information
yavko committed Apr 1, 2023
1 parent b8311e7 commit 9ad8788
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 16 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "hyprland"
version = "0.3.1"
edition = "2021"
authors = ["yavko <[email protected]>"]
license = "GPL-3.0-or-later"
keywords = ["hyprland", "ipc", "hypr", "wayland", "linux"]
categories = ["api-bindings"]
readme = "README.md"
description = "A unoffical rust wrapper for hyprland's IPC"
homepage = "https://github.com/hyprland-community/hyprland-rs"
repository = "https://github.com/hyprland-community/hyprland-rs"
version.workspace = true
license.workspace = true
author.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[package.metadata.nix]
Expand All @@ -23,8 +23,17 @@ lto = true
[workspace]
members = ["hyprland-macros"]

[workspace.package]
version = "0.3.1"
license = "GPL-3.0-or-later"
repository = "https://github.com/hyprland-community/hyprland-rs"
keywords = ["hyprland", "ipc", "hypr", "wayland", "linux"]
categories = ["api-bindings"]
authors = ["yavko <[email protected]>"]


[dependencies]
hyprland-macros = { path = "./hyprland-macros/" }
hyprland-macros = { path = "hyprland-macros", version = "0.3.1" }
serde = {version = "1", features = ["derive"]}
serde_json = "1"
serde_repr = "0.1"
Expand Down
10 changes: 6 additions & 4 deletions hyprland-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
[package]
name = "hyprland-macros"
version = "0.1.0"
description = "Macros used in hyprland-rs"
version.workspace = true
license.workspace = true
readme = "README.md"
edition = "2021"
homepage = "https://github.com/hyprland-community/hyprland-rs/tree/master/hyprland-macros"

[package.metadata.nix]
build = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
proc-macro = true

[dependencies]
syn = "2"
syn = { version = "2", features = ["full", "parsing"]}
quote = "1"
2 changes: 2 additions & 0 deletions hyprland-macros/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Hyprland Macros
Literally only async closure macro lol
4 changes: 4 additions & 0 deletions hyprland-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#![doc = include_str!("../README.md")]
#![deny(missing_docs)]

use proc_macro::TokenStream;
use quote::quote;
use syn::{parse_macro_input, ExprClosure};

/// Creates a async closure
#[proc_macro]
pub fn async_closure(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as ExprClosure);
Expand Down

0 comments on commit 9ad8788

Please sign in to comment.