This commit is contained in:
nora 2023-09-29 20:17:35 +02:00
commit 8a033fc3df
14 changed files with 197 additions and 0 deletions

23
example-user/Cargo.lock generated Normal file
View file

@ -0,0 +1,23 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "example-user"
version = "0.1.0"
dependencies = [
"libuwuc",
]
[[package]]
name = "libuwuc"
version = "0.1.0"
dependencies = [
"cfg-if",
]

17
example-user/Cargo.toml Normal file
View file

@ -0,0 +1,17 @@
[workspace]
[package]
name = "example-user"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[dependencies]
libuwuc = { path = "..", features = ["export_symbols"] }

17
example-user/src/main.rs Normal file
View file

@ -0,0 +1,17 @@
#![cfg_attr(not(test), no_std)]
#![no_main]
use core::ffi::c_char;
extern crate libuwuc;
#[panic_handler]
#[cfg(not(test))]
fn handler(_arg: &core::panic::PanicInfo) -> ! {
loop {}
}
#[no_mangle]
extern "C" fn main(_argc: i32, _argv: *const *const c_char) -> i32 {
0
}