File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 3636 - run : cargo test --locked
3737 - run : cargo test --features https,ssh
3838 - run : cargo run -p systest
39+ - run : cargo run -p systest --features unstable-sha256
3940 - run : cargo test -p git2-curl
4041
4142 rustfmt :
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ libc = "0.2"
1111
1212[build-dependencies ]
1313ctest2 = " 0.4"
14+
15+ [features ]
16+ unstable-sha256 = [" libgit2-sys/unstable-sha256" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ fn main() {
66 if let Some ( root) = env:: var_os ( "DEP_GIT2_ROOT" ) {
77 cfg. include ( PathBuf :: from ( root) . join ( "include" ) ) ;
88 }
9+
10+ // Enable the unstable-sha256 rust cfg
11+ // so ctest2 sees the correct function signatures
12+ if env:: var ( "CARGO_FEATURE_UNSTABLE_SHA256" ) . is_ok ( ) {
13+ cfg. cfg ( "feature" , Some ( "unstable-sha256" ) ) ;
14+ cfg. define ( "GIT_EXPERIMENTAL_SHA256" , Some ( "1" ) ) ;
15+ }
16+
917 cfg. header ( "git2.h" )
1018 . header ( "git2/sys/errors.h" )
1119 . header ( "git2/sys/transport.h" )
You can’t perform that action at this time.
0 commit comments