diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..b73e46c --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "rust-link-musl-error" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +libgit2-sys = "0.16.0" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4dfff47 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM rust:1.72.0-alpine3.18 +RUN apk add libgit2-dev zlib-dev libc-dev +COPY . . +CMD ["cargo", "build"] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..b4c9366 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,5 @@ +pub struct GitUse { + cred: libgit2_sys::git_cred, +} + +fn main() {}