feat: initialize monorepo
parent
9d1d035782
commit
6291ff841a
|
@ -5,3 +5,10 @@ version = 3
|
|||
[[package]]
|
||||
name = "inputhook"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "inputhook-test"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"inputhook",
|
||||
]
|
||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -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"]
|
||||
|
|
|
@ -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" }
|
|
@ -0,0 +1,5 @@
|
|||
extern crate inputhook;
|
||||
|
||||
fn main() {
|
||||
println!("{}", inputhook::test());
|
||||
}
|
|
@ -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]
|
|
@ -0,0 +1,3 @@
|
|||
pub fn test() -> &'static str {
|
||||
"Hello, world!"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
Reference in New Issue