File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 33
33
- name : Install Rust (rustup)
34
34
run : rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
35
35
shell : bash
36
- - run : cargo test --no-default-features -- locked
37
- - run : cargo test
36
+ - run : cargo test --locked
37
+ - run : cargo test --features https,ssh
38
38
- run : cargo run -p systest
39
39
- run : cargo test -p git2-curl
40
40
Original file line number Diff line number Diff line change @@ -45,3 +45,9 @@ zlib-ng-compat = ["libgit2-sys/zlib-ng-compat"]
45
45
46
46
[workspace ]
47
47
members = [" systest" , " git2-curl" ]
48
+
49
+ [package .metadata .docs .rs ]
50
+ features = [" https" , " ssh" ]
51
+
52
+ [[examples ]]
53
+ required-features = [" https" , " ssh" ]
Original file line number Diff line number Diff line change 4
4
5
5
libgit2 bindings for Rust.
6
6
7
- ``` toml
8
- [dependencies ]
9
- git2 = " 0.21"
7
+ ```
8
+ cargo add git2
9
+ ```
10
+
11
+ ## Features
12
+
13
+ By default, git2 includes support for working with local repositories, but does
14
+ not include network support (e.g. cloning remote repositories). If you want to
15
+ use features that require network support, you may need the ` "https" ` and/or
16
+ ` "ssh" ` features. If you support user-provided repository URLs, you probably
17
+ want to enable both.
18
+
19
+ ```
20
+ cargo add git2 --features https,ssh
10
21
```
11
22
12
23
## Rust version requirements
You can’t perform that action at this time.
0 commit comments