feat: initialize monorepo

pull/11/head
paring 2022-11-01 15:07:06 +09:00
parent 9d1d035782
commit 6291ff841a
7 changed files with 34 additions and 11 deletions

7
Cargo.lock generated
View File

@ -5,3 +5,10 @@ version = 3
[[package]]
name = "inputhook"
version = "0.1.0"
[[package]]
name = "inputhook-test"
version = "0.1.0"
dependencies = [
"inputhook",
]

View File

@ -1,8 +1,2 @@
[package]
name = "inputhook"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
[workspace]
members = ["inputhook", "inputhook-test"]

View File

@ -0,0 +1,9 @@
[package]
name = "inputhook-test"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
inputhook = { path = "../inputhook" }

View File

@ -0,0 +1,5 @@
extern crate inputhook;
fn main() {
println!("{}", inputhook::test());
}

8
inputhook/Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "inputhook"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
inputhook/src/lib.rs Normal file
View File

@ -0,0 +1,3 @@
pub fn test() -> &'static str {
"Hello, world!"
}

View File

@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}