Skip to content

Commit

Permalink
Add minimal example for rust-lang/rust#115430
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-freezing-lava committed Sep 26, 2023
0 parents commit 3880d1c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM rust:1.72.0-alpine3.18
RUN apk add libgit2-dev zlib-dev libc-dev
COPY . .
CMD ["cargo", "build"]
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub struct GitUse {
cred: libgit2_sys::git_cred,
}

fn main() {}

0 comments on commit 3880d1c

Please sign in to comment.