From 56d01a946413158e9968b849b704502033575feb Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 20 Dec 2021 14:00:10 +0100 Subject: [PATCH] initial commit --- .gitignore | 4 ++++ Cargo.toml | 8 ++++++++ src/lib.rs | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a99f24f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/target +Cargo.lock +.idea +*.iml \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a99e0a7 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "vechonk" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..d76b731 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,6 @@ +//! +//! A `Vec` +//! +//! It's implemented by laying out the elements in memory contiguously like `alloc::vec::Vec` + +struct Vechonk;