Compare commits
No commits in common. "e5312509b911764357a186d819a49738b99fe19e" and "7b010a655bb4fecb2f455ab4a63e9eafe6853bf0" have entirely different histories.
e5312509b9
...
7b010a655b
|
@ -4,7 +4,7 @@
|
|||
name = "gravatar-rs"
|
||||
description = "Gravatar image URL library"
|
||||
authors = ["Holllo <helllo@holllo.cc>"]
|
||||
version = "0.2.0"
|
||||
version = "0.1.0"
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/Holllo/gravatar-rs"
|
||||
edition = "2021"
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
[tasks.fmt]
|
||||
command = "cargo"
|
||||
args = ["fmt", "${@}"]
|
||||
|
||||
[tasks.check]
|
||||
command = "cargo"
|
||||
args = ["check", "${@}"]
|
||||
|
||||
[tasks.clippy]
|
||||
command = "cargo"
|
||||
args = ["clippy", "${@}"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "${@}"]
|
||||
|
||||
[tasks.doc]
|
||||
command = "cargo"
|
||||
args = ["doc", "${@}"]
|
||||
|
||||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "${@}"]
|
||||
|
||||
[tasks.complete-check]
|
||||
dependencies = ["fmt", "check", "clippy", "test", "doc", "build"]
|
||||
|
||||
[tasks.code-coverage]
|
||||
workspace = false
|
||||
install_crate = "cargo-tarpaulin"
|
||||
command = "cargo"
|
||||
args = [
|
||||
"tarpaulin",
|
||||
"--exclude-files=target/*",
|
||||
"--out=html",
|
||||
"--output-dir=coverage",
|
||||
"--skip-clean",
|
||||
"--target-dir=target/tarpaulin"
|
||||
]
|
|
@ -24,12 +24,9 @@
|
|||
//! "https://www.gravatar.com/avatar/ebff9105dce4954b1bdb57fdab079ff3"
|
||||
//! );
|
||||
//! ```
|
||||
//!
|
||||
//! For all possible options see [`Generator`].
|
||||
|
||||
/// A generator for Gravatar image URLs.
|
||||
#[derive(Debug)]
|
||||
#[non_exhaustive]
|
||||
pub struct Generator {
|
||||
/// The base URL for images, defaults to `www.gravatar.com`.
|
||||
pub base_url: String,
|
||||
|
@ -114,7 +111,6 @@ impl Generator {
|
|||
|
||||
/// Returns all configurable options as a query parameter string.
|
||||
pub fn query_parameters(&self) -> String {
|
||||
/// Shorthand for [`urlencoding::encode`].
|
||||
fn encode<D: std::fmt::Display>(data: D) -> String {
|
||||
urlencoding::encode(&data.to_string()).into_owned()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue