Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Kotov 37ca42e798
Add Rust crate "winproto" 2022-09-09 17:18:48 +04:00
Alex Kotov 8367f549a3
Move Rust code to the subdirectory 2022-09-09 17:13:04 +04:00
16 changed files with 49 additions and 24 deletions

8
.gitignore vendored
View File

@ -1,7 +1,13 @@
/config/1-generated.mk
/config/2-conditionals.mk
/polytreewm
# C
/src/*.o
/target/
/tests/*.o
/tests/*.test
# Rust
/Cargo.lock
/rust-winproto/Cargo.lock
/target/

View File

@ -1,22 +1,5 @@
[package]
name = "polytreewm"
version = "0.0.0"
authors = ["Alex Kotov <kotovalexarian@gmail.com>"]
edition = "2021"
description = "PolytreeWM is an extremely fast, small, and dynamic tiling window manager for X"
readme = true
homepage = "https://github.com/PolytreeDE/polytreewm"
repository = "https://github.com/PolytreeDE/polytreewm.git"
license = "MIT"
keywords = []
categories = []
publish = false
[lib]
name = "polytreewm"
crate-type = ["staticlib"]
[dependencies]
ctor = "0.1.23"
env_logger = "0.9.0"
log = "0.4.17"
[workspace]
members = [
"rust-polytreewm",
"rust-winproto",
]

View File

@ -14,7 +14,12 @@ CONFIGMKS = \
$(CONFIGMKS_TO_REMOVE) \
config/3-defvars.mk
RUST_SRC = Cargo.toml Cargo.lock src/*.rs src/**/*.rs
RUST_SRC = \
rust-polytreewm/Cargo.toml \
rust-polytreewm/Cargo.lock \
rust-polytreewm/src/*.rs \
rust-polytreewm/src/**/*.rs
RUST_APIS = src/constraints.h src/geom.h src/helpers.h src/settings.h
MODULES_SRC = \

View File

@ -0,0 +1,22 @@
[package]
name = "polytreewm"
version = "0.0.0"
authors = ["Alex Kotov <kotovalexarian@gmail.com>"]
edition = "2021"
description = "PolytreeWM is an extremely fast, small, and dynamic tiling window manager for X"
readme = true
homepage = "https://github.com/PolytreeDE/polytreewm"
repository = "https://github.com/PolytreeDE/polytreewm.git"
license = "MIT"
keywords = []
categories = []
publish = false
[lib]
name = "polytreewm"
crate-type = ["staticlib"]
[dependencies]
ctor = "0.1.23"
env_logger = "0.9.0"
log = "0.4.17"

8
rust-winproto/Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "winproto"
version = "0.0.0"
publish = false
[lib]
name = "winproto"
crate-type = ["staticlib"]

1
rust-winproto/src/lib.rs Normal file
View File

@ -0,0 +1 @@
pub fn foo() {}