Fix cargo workspaces and forgejo actions

This commit is contained in:
xqtc 2024-09-03 22:21:55 +02:00
parent a0094c7a35
commit 6007880020
4 changed files with 38 additions and 3 deletions
.forgejo/workflows
Cargo.lockCargo.toml
lib-uwusched

View file

@ -14,11 +14,11 @@ jobs:
- uses: https://github.com/actions-rs/cargo@v1
with:
command: build
args: --release --bin uwusched
args: --release --bins
- uses: https://github.com/actions-rs/cargo@v1
with:
command: build
args: --release --lib lib-uwusched
args: --release --lib
# - uses: https://github.com/actions-rs/cargo@v1
# with:
# command: test

16
Cargo.lock generated
View file

@ -209,6 +209,22 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "lib-uwusched"
version = "0.1.0"
dependencies = [
"anyhow",
"bincode",
"clap",
"lazy_static",
"log",
"lz4_flex",
"pretty_env_logger",
"serde",
"serde_json",
"toml",
]
[[package]]
name = "libc"
version = "0.2.158"

View file

@ -1,3 +1,4 @@
[workspace]
members = ["uwusched"]
members = ["./uwusched", "./lib-uwusched"]
resolver = "2"

View file

@ -0,0 +1,18 @@
[package]
authors = ["xqtc"]
description = "Distributed computing with abstract data"
name = "lib-uwusched"
version = "0.1.0"
edition = "2021"
[dependencies]
pretty_env_logger = "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
lz4_flex = "0.11.3"
toml = "0.8.19"
lazy_static = "1.5.0"
log = "0.4.22"
bincode = "1.3.3"
clap = { version = "4.5.16", features = ["derive"] }