From 6d15ef3ba4ee530b272c19a37d92e06076a7e647 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 2 Apr 2023 22:39:02 +0200 Subject: [PATCH] build: initial commit --- .editorconfig | 10 ++++++++++ .gitignore | 1 + .rustfmt.toml | 1 + Cargo.toml | 16 ++++++++++++++++ src/lib.rs | 10 ++++++++++ 5 files changed, 38 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .rustfmt.toml create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..011b707 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +# Default to Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = tab +indent_size = 4 + +[*.rs] +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..218e203 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +hard_tabs = true diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..018e730 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "cordy" +version = "0.1.0" +edition = "2021" + +[lib] +name = "cordy" +crate-type = ["cdylib"] +path = "src/lib.rs" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +ctor = "0.1.26" +tracing = "0.1.37" +pox = { git = "ssh://git@git.fantabos.co/srv/git/pox", branch = "dev", features = ["monitor"] } diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..516d836 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,10 @@ + +static mut RUNTIME : + +#[ctor::ctor] +fn contructor() { + +} + +#[ctor::dtor] +fn destructor() {}