File tree Expand file tree Collapse file tree 4 files changed +126
-12
lines changed Expand file tree Collapse file tree 4 files changed +126
-12
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ test-log = "0.2.14"
68
68
[target .'cfg(loom)' .dev-dependencies ]
69
69
loom = " 0.7"
70
70
71
+ [build-dependencies ]
72
+ cbindgen = " 0.29.0"
73
+
71
74
[features ]
72
75
default = []
73
76
testing = [" dep:fdlimit" , " dep:rayon" , " dep:twox-hash" ]
Original file line number Diff line number Diff line change
1
+ use std:: env;
2
+
1
3
fn main ( ) {
2
4
// We have a custom "loom" cfg that Rust warns about since 1.80.
3
5
println ! ( "cargo::rustc-check-cfg=cfg(loom)" ) ;
6
+
7
+ let crate_dir = env:: var ( "CARGO_MANIFEST_DIR" ) . unwrap ( ) ;
8
+
9
+ cbindgen:: generate ( crate_dir)
10
+ . expect ( "Unable to generate bindings" )
11
+ // I expect there's a better place to put this, then copy it into the Go
12
+ // directory so it is packaged in the Go module.
13
+ . write_to_file ( "go/cpossum/possum.h" ) ;
4
14
}
Original file line number Diff line number Diff line change 1
1
github.com/RoaringBitmap/roaring v0.4.7 /go.mod h1:8khRDP4HmeXns4xIj9oGrKSz7XTQiJx2zgh7AcNke4w =
2
- github.com/anacrolix/chansync v0.5.1-0.20240710235309-042fd9527a94 h1:oz2dp9sWY1iFOxFRZh7azX0O81K7Jwb885jQDmIIOWE =
3
- github.com/anacrolix/chansync v0.5.1-0.20240710235309-042fd9527a94 /go.mod h1:DZsatdsdXxD0WiwcGl0nJVwyjCKMDv+knl1q2iBjA2k =
4
2
github.com/anacrolix/chansync v0.5.1 h1:j+R9DtotkXm40VFjZ8rJTSJkg2Gv1ldZt8kl96lyJJ0 =
5
3
github.com/anacrolix/chansync v0.5.1 /go.mod h1:DZsatdsdXxD0WiwcGl0nJVwyjCKMDv+knl1q2iBjA2k =
6
4
github.com/anacrolix/envpprof v0.0.0-20180404065416-323002cec2fa /go.mod h1:KgHhUaQMc8cC0+cEflSgCFNFbKwi5h54gqtVn8yhP7c =
7
5
github.com/anacrolix/envpprof v1.0.0 /go.mod h1:KgHhUaQMc8cC0+cEflSgCFNFbKwi5h54gqtVn8yhP7c =
8
6
github.com/anacrolix/envpprof v1.1.0 h1:hz8QWMN1fA01YNQsUtVvl9hBXQWWMxSnHHoOK9IdrNY =
9
7
github.com/anacrolix/envpprof v1.1.0 /go.mod h1:My7T5oSqVfEn4MD4Meczkw/f5lSIndGAKu/0SM/rkf4 =
10
- github.com/anacrolix/generics v0.0.0-20230911070922-5dd7545c6b13 h1:qwOprPTDMM3BASJRf84mmZnTXRsPGGJ8xoHKQS7m3so =
11
- github.com/anacrolix/generics v0.0.0-20230911070922-5dd7545c6b13 /go.mod h1:ff2rHB/joTV03aMSSn/AZNnaIpUw0h3njetGsaXcMy8 =
12
- github.com/anacrolix/generics v0.0.1 h1:4WVhK6iLb3UAAAQP6I3uYlMOHcp9FqJC9j4n81Wv9Ks =
13
- github.com/anacrolix/generics v0.0.1 /go.mod h1:ff2rHB/joTV03aMSSn/AZNnaIpUw0h3njetGsaXcMy8 =
14
8
github.com/anacrolix/generics v0.0.2 h1:UbtD+KntUGxeGYMC4RwhsETieL9ixGdSptJQRhdy7No =
15
9
github.com/anacrolix/generics v0.0.2 /go.mod h1:ff2rHB/joTV03aMSSn/AZNnaIpUw0h3njetGsaXcMy8 =
16
10
github.com/anacrolix/log v0.6.0 h1:5y+wtTWoecbrAWWuoBCH7UuGFiD6q2jnQxrLK01RC+Q =
You can’t perform that action at this time.
0 commit comments