Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
- run: cargo test --no-default-features --locked
- run: cargo test
- run: cargo test --locked
- run: cargo test --features https,ssh
- run: cargo run -p systest
- run: cargo test -p git2-curl

Expand Down
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ zlib-ng-compat = ["libgit2-sys/zlib-ng-compat"]

[workspace]
members = ["systest", "git2-curl"]

[package.metadata.docs.rs]
features = ["https", "ssh"]

[[examples]]
required-features = ["https", "ssh"]
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@

libgit2 bindings for Rust.

```toml
[dependencies]
git2 = "0.21"
```
cargo add git2
```

## Features

By default, git2 includes support for working with local repositories, but does
not include network support (e.g. cloning remote repositories). If you want to
use features that require network support, you may need the `"https"` and/or
`"ssh"` features. If you support user-provided repository URLs, you probably
want to enable both.

```
cargo add git2 --features https,ssh
```

## Rust version requirements
Expand Down
Loading