1
Fork 0
gravatar-rs/README.md

35 lines
1.3 KiB
Markdown
Raw Normal View History

2022-09-26 10:12:31 +00:00
# Gravatar 📇 Rust
2022-04-02 12:33:36 +00:00
2022-09-26 10:12:31 +00:00
> **Gravatar image URL library for Rust.**
2022-04-02 12:33:36 +00:00
## API
2022-09-26 10:12:31 +00:00
For full documentation see [docs.rs](https://docs.rs/gravatar-rs).
2022-04-02 12:33:36 +00:00
2022-09-26 10:12:31 +00:00
## Example
2022-04-02 12:33:36 +00:00
```rust
use gravatar_rs::Generator;
let generator = Generator::default();
2022-09-26 10:12:31 +00:00
let gravatar_url = generator.generate("helllo@holllo.org");
2022-04-02 12:33:36 +00:00
assert_eq!(
gravatar_url,
2022-09-26 10:12:31 +00:00
"https://www.gravatar.com/avatar/e9a2c03d607ec80a5b725ad42c19ee36"
2022-04-02 12:33:36 +00:00
);
```
2024-01-21 11:28:00 +00:00
## Development
With [Nix flakes](https://nixos.wiki/wiki/Flakes) and [direnv](https://direnv.net/) installed and enabled, all the required dependencies are automatically loaded from [`shell.nix`](./shell.nix). Then [cargo-make](https://sagiegurari.github.io/cargo-make/) can be used to build, deploy and lint the code. The available tasks are all described in the [`Makefile.toml`](Makefile.toml) configuration.
2022-09-26 10:12:31 +00:00
## Feedback
Found a problem or want to request a new feature? Email [helllo@holllo.org](mailto:helllo@holllo.org) and I'll see what I can do for you.
2022-04-02 12:33:36 +00:00
2022-09-26 10:12:31 +00:00
## License
2022-04-02 12:33:36 +00:00
2022-09-26 10:12:31 +00:00
Distributed under the [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html) and [MIT](https://spdx.org/licenses/MIT.html) licenses, see [LICENSE-Apache](https://git.bauke.xyz/Holllo/gravatar-rs/src/branch/main/LICENSE-Apache) and [LICENSE-MIT](https://git.bauke.xyz/Holllo/gravatar-rs/src/branch/main/LICENSE-MIT) for more information.