Skip to content

Commit 3880d1c

Browse files
Add minimal example for rust-lang/rust#115430
0 parents  commit 3880d1c

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "rust-link-musl-error"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
libgit2-sys = "0.16.0"

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM rust:1.72.0-alpine3.18
2+
RUN apk add libgit2-dev zlib-dev libc-dev
3+
COPY . .
4+
CMD ["cargo", "build"]

src/main.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub struct GitUse {
2+
cred: libgit2_sys::git_cred,
3+
}
4+
5+
fn main() {}

0 commit comments

Comments
 (0)