-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
39 lines (36 loc) · 1.27 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "sponsor-block"
version = "0.6.1"
authors = ["Zacchary Dempsey-Plante <zacc@ztdp.ca>"]
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/zedseven/sponsor-block-rs"
homepage = "https://github.com/zedseven/sponsor-block-rs"
description = "A Rust wrapper for the SponsorBlock API."
categories = ["api-bindings"]
keywords = ["block", "ads", "sponsors", "metadata", "youtube"]
[dependencies]
bitflags = "1.3"
enum-kinds = "0.5"
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"], optional = true }
reqwest = "0.11"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = { version = "0.10", optional = true }
thiserror = "1.0"
time = { version = "0.3", features = ["serde"] }
[features]
# The set of features enabled by default.
default = ["user", "private_searches"]
# User functions, for standard use of the service.
user = []
# VIP functions, only really useful for VIP users.
vip = []
# Use hash-based segment searching, which significantly improves privacy at a slight bandwidth and
# performance cost.
# This should almost certainly be left enabled.
private_searches = ["sha2"]
# Include support for generating new local user IDs.
gen_user_id = ["rand"]
[package.metadata.docs.rs]
all-features = true