|
| 1 | +[package] |
| 2 | +name = "audd" |
| 3 | +version = "1.5.4" |
| 4 | +edition = "2021" |
| 5 | +rust-version = "1.88" |
| 6 | +license = "MIT" |
| 7 | +description = "Official Rust SDK for the AudD music recognition API" |
| 8 | +repository = "https://github.com/AudDMusic/audd-rust" |
| 9 | +homepage = "https://audd.io" |
| 10 | +documentation = "https://docs.rs/audd" |
| 11 | +keywords = ["audd", "music", "recognition", "audio", "fingerprint"] |
| 12 | +categories = ["api-bindings", "multimedia::audio"] |
| 13 | +readme = "README.md" |
| 14 | +exclude = ["tests/integration*", ".github/*"] |
| 15 | + |
| 16 | +[features] |
| 17 | +# `rustls-tls` is the default and matches the v0.2 behavior (Mozilla CA bundle, |
| 18 | +# pure-Rust TLS stack). Opt out with `default-features = false` and enable |
| 19 | +# `native-tls` (or `vendored-openssl`) when you need OpenSSL — corp environments |
| 20 | +# with custom CA trust stores, OpenSSL FIPS, etc. |
| 21 | +default = ["rustls-tls"] |
| 22 | +rustls-tls = ["reqwest/rustls-tls"] |
| 23 | +native-tls = ["reqwest/native-tls"] |
| 24 | +# Statically links a vendored copy of OpenSSL — useful when the build host |
| 25 | +# lacks `libssl-dev` / pkg-config OpenSSL headers but you still need the |
| 26 | +# OpenSSL TLS stack at runtime. |
| 27 | +vendored-openssl = ["reqwest/native-tls", "reqwest/native-tls-vendored"] |
| 28 | +# Opt-in live-API integration tests; gate via env var AUDD_API_TOKEN. |
| 29 | +integration = [] |
| 30 | + |
| 31 | +[dependencies] |
| 32 | +reqwest = { version = "0.12", default-features = false, features = ["multipart", "json", "stream"] } |
| 33 | +serde = { version = "1", features = ["derive"] } |
| 34 | +serde_json = "1" |
| 35 | +tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "sync", "time"] } |
| 36 | +thiserror = "1" |
| 37 | +tracing = "0.1" |
| 38 | +futures-core = "0.3" |
| 39 | +async-stream = "0.3" |
| 40 | +tokio-util = { version = "0.7", features = ["io"] } |
| 41 | +md5 = "0.7" |
| 42 | +url = "2" |
| 43 | + |
| 44 | +[dev-dependencies] |
| 45 | +tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "sync", "time", "test-util", "signal"] } |
| 46 | +tokio-test = "0.4" |
| 47 | +wiremock = "0.6" |
| 48 | +serde_json = "1" |
| 49 | +tempfile = "3" |
| 50 | +futures-util = "0.3" |
| 51 | +# Used by the `scan_and_rename` example. |
| 52 | +clap = { version = "4", features = ["derive"] } |
| 53 | +walkdir = "2" |
| 54 | +lofty = "0.22" |
| 55 | +# Used by the `stream_to_csv` example. |
| 56 | +csv = "1" |
| 57 | +chrono = { version = "0.4", default-features = false, features = ["clock"] } |
| 58 | + |
| 59 | +[[example]] |
| 60 | +name = "recognize_url" |
| 61 | +path = "examples/recognize_url.rs" |
| 62 | + |
| 63 | +[[example]] |
| 64 | +name = "recognize_file" |
| 65 | +path = "examples/recognize_file.rs" |
| 66 | + |
| 67 | +[[example]] |
| 68 | +name = "recognize_enterprise" |
| 69 | +path = "examples/recognize_enterprise.rs" |
| 70 | + |
| 71 | +[[example]] |
| 72 | +name = "streams_setup" |
| 73 | +path = "examples/streams_setup.rs" |
| 74 | + |
| 75 | +[[example]] |
| 76 | +name = "streams_longpoll" |
| 77 | +path = "examples/streams_longpoll.rs" |
| 78 | + |
| 79 | +[[example]] |
| 80 | +name = "streams_callback_handler" |
| 81 | +path = "examples/streams_callback_handler.rs" |
| 82 | + |
| 83 | +[[example]] |
| 84 | +name = "custom_catalog_add" |
| 85 | +path = "examples/custom_catalog_add.rs" |
| 86 | + |
| 87 | +[[example]] |
| 88 | +name = "tokenless_longpoll" |
| 89 | +path = "examples/tokenless_longpoll.rs" |
| 90 | + |
| 91 | +[[example]] |
| 92 | +name = "scan_and_rename" |
| 93 | +path = "examples/scan_and_rename.rs" |
| 94 | + |
| 95 | +[[example]] |
| 96 | +name = "stream_to_csv" |
| 97 | +path = "examples/stream_to_csv.rs" |
0 commit comments