Files
iroh/README.md
T
Kasey 8c254f3ea5 use default-features = false when importing sendme as a library (#110)
closes #74 

Isolate `cli` specific crates behind the `cli` feature.
2023-02-03 11:03:17 -05:00

77 lines
1.7 KiB
Markdown

<h1 align="center">sendme</h1>
<div align="center">
<strong>
Send data over the internet.
</strong>
</div>
<br />
<div align="center">
<!-- Crates version -->
<a href="https://crates.io/crates/sendme">
<img src="https://img.shields.io/crates/v/sendme.svg?style=flat-square"
alt="Crates.io version" />
</a>
<!-- Downloads -->
<a href="https://crates.io/crates/sendme">
<img src="https://img.shields.io/crates/d/sendme.svg?style=flat-square"
alt="Download" />
</a>
<!-- docs.rs docs -->
<a href="https://docs.rs/sendme">
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
alt="docs.rs docs" />
</a>
</div>
<div align="center">
<h3>
<a href="https://docs.rs/sendme">
API Docs
</a>
<span> | </span>
<a href="https://github.com/n0-computer/sendme/releases">
Releases
</a>
</h3>
</div>
<br/>
## Usage
### Cli
Sending data
```sh
$ ./sendme provide <file>
```
Receiving data
```sh
$ ./sendme get <hash>
```
### As a library
Disable default features when using `sendme` as a library:
`sendme = { version: "...", default-features = false }`
This removes dependencies that are only relevant when using `sendme` as
a library.
# License
This project is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this project by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.