[package]
edition = "2024"
rust-version = "1.88"
name = "magnetar-admin"
version = "1.1.1"
authors = ["Florentin Dubois <florentin.dubois@clever-cloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apache Pulsar admin REST client for Rust."
homepage = "https://github.com/CleverCloud/magnetar"
readme = "README.md"
keywords = [
"pulsar",
"apache-pulsar",
"messaging",
"streaming",
"sans-io",
]
categories = [
"asynchronous",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/CleverCloud/magnetar"
[features]
crypto-aws-lc-rs = [
"reqwest/rustls",
"rustls/aws_lc_rs",
"magnetar-auth-oauth2/crypto-aws-lc-rs",
]
crypto-fips = [
"reqwest/rustls-no-provider",
"rustls/fips",
"magnetar-auth-oauth2/crypto-fips",
]
crypto-openssl = [
"reqwest/rustls-no-provider",
"dep:rustls-openssl",
"magnetar-auth-oauth2/crypto-openssl",
]
crypto-ring = [
"reqwest/rustls-no-provider",
"rustls/ring",
"magnetar-auth-oauth2/crypto-ring",
]
scalable-topics = ["magnetar-proto/scalable-topics"]
[lib]
name = "magnetar_admin"
path = "src/lib.rs"
[[test]]
name = "auth"
path = "tests/auth.rs"
[[test]]
name = "bookies"
path = "tests/bookies.rs"
[[test]]
name = "brokers_config"
path = "tests/brokers_config.rs"
[[test]]
name = "decode_error_context"
path = "tests/decode_error_context.rs"
[[test]]
name = "diagnostics"
path = "tests/diagnostics.rs"
[[test]]
name = "functions"
path = "tests/functions.rs"
[[test]]
name = "namespace_policies"
path = "tests/namespace_policies.rs"
[[test]]
name = "namespace_policies_breadth"
path = "tests/namespace_policies_breadth.rs"
[[test]]
name = "namespace_policies_more"
path = "tests/namespace_policies_more.rs"
[[test]]
name = "packages"
path = "tests/packages.rs"
[[test]]
name = "pip_180_shadow_topic"
path = "tests/pip_180_shadow_topic.rs"
[[test]]
name = "pip_415_message_id_by_index"
path = "tests/pip_415_message_id_by_index.rs"
[[test]]
name = "scenarios_invariants"
path = "tests/scenarios_invariants.rs"
[[test]]
name = "schemas"
path = "tests/schemas.rs"
[[test]]
name = "sinks"
path = "tests/sinks.rs"
[[test]]
name = "sources"
path = "tests/sources.rs"
[[test]]
name = "subscriptions"
path = "tests/subscriptions.rs"
[[test]]
name = "topic_ops"
path = "tests/topic_ops.rs"
[[test]]
name = "topic_policies"
path = "tests/topic_policies.rs"
[[test]]
name = "url_construction"
path = "tests/url_construction.rs"
[dependencies.http]
version = "^1.4.2"
[dependencies.magnetar-auth-oauth2]
version = "^1.1.1"
[dependencies.magnetar-proto]
version = "^1.1.1"
[dependencies.reqwest]
version = "^0.13.4"
features = [
"json",
"form",
"multipart",
]
default-features = false
[dependencies.rustls]
version = "^0.23.40"
features = [
"std",
"tls12",
"logging",
]
default-features = false
[dependencies.rustls-openssl]
version = "^0.3.1"
optional = true
default-features = false
[dependencies.serde]
version = "^1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "^1.0.150"
[dependencies.thiserror]
version = "^2.0.18"
[dependencies.tracing]
version = "^0.1.44"
[dependencies.url]
version = "^2.5.8"
[dev-dependencies.magnetar-auth-oauth2]
version = "^1.1.1"
[dev-dependencies.tokio]
version = "^1.52.3"
features = [
"rt-multi-thread",
"macros",
]
default-features = false
[dev-dependencies.wiremock]
version = "^0.6.5"
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
collapsible_if = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unnecessary_literal_bound = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1