# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
name = "megalodon"
version = "0.14.1"
authors = ["Akira Fukushima
"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mastodon and Pleroma API client library for Rust."
homepage = "https://github.com/h3poteto/megalodon-rs"
readme = "README.md"
license = "MIT"
repository = "https://github.com/h3poteto/megalodon-rs"
[package.metadata.docs.rs]
features = [
"native-tls",
"rustls-tls",
]
[lib]
name = "megalodon"
path = "src/lib.rs"
[[example]]
name = "detector"
path = "examples/detector.rs"
[[example]]
name = "firefish_authorization"
path = "examples/firefish_authorization.rs"
[[example]]
name = "firefish_credentials"
path = "examples/firefish_credentials.rs"
[[example]]
name = "firefish_custom_emojis"
path = "examples/firefish_custom_emojis.rs"
[[example]]
name = "firefish_favourite"
path = "examples/firefish_favourite.rs"
[[example]]
name = "firefish_home"
path = "examples/firefish_home.rs"
[[example]]
name = "firefish_instance"
path = "examples/firefish_instance.rs"
[[example]]
name = "firefish_media"
path = "examples/firefish_media.rs"
[[example]]
name = "firefish_notifications"
path = "examples/firefish_notifications.rs"
[[example]]
name = "firefish_post_with_media"
path = "examples/firefish_post_with_media.rs"
[[example]]
name = "firefish_search"
path = "examples/firefish_search.rs"
[[example]]
name = "firefish_streaming"
path = "examples/firefish_streaming.rs"
[[example]]
name = "friendica_authorization"
path = "examples/friendica_authorization.rs"
[[example]]
name = "friendica_credentials"
path = "examples/friendica_credentials.rs"
[[example]]
name = "friendica_favourite"
path = "examples/friendica_favourite.rs"
[[example]]
name = "friendica_follow_requests"
path = "examples/friendica_follow_requests.rs"
[[example]]
name = "friendica_home"
path = "examples/friendica_home.rs"
[[example]]
name = "friendica_instance"
path = "examples/friendica_instance.rs"
[[example]]
name = "friendica_marker"
path = "examples/friendica_marker.rs"
[[example]]
name = "friendica_media"
path = "examples/friendica_media.rs"
[[example]]
name = "friendica_post_with_media"
path = "examples/friendica_post_with_media.rs"
[[example]]
name = "friendica_post_with_schedule"
path = "examples/friendica_post_with_schedule.rs"
[[example]]
name = "friendica_reblog"
path = "examples/friendica_reblog.rs"
[[example]]
name = "friendica_relationship"
path = "examples/friendica_relationship.rs"
[[example]]
name = "gotosocial_authorization"
path = "examples/gotosocial_authorization.rs"
[[example]]
name = "gotosocial_credentials"
path = "examples/gotosocial_credentials.rs"
[[example]]
name = "gotosocial_home"
path = "examples/gotosocial_home.rs"
[[example]]
name = "gotosocial_instance"
path = "examples/gotosocial_instance.rs"
[[example]]
name = "gotosocial_post"
path = "examples/gotosocial_post.rs"
[[example]]
name = "gotosocial_streaming"
path = "examples/gotosocial_streaming.rs"
[[example]]
name = "mastodon_authorization"
path = "examples/mastodon_authorization.rs"
[[example]]
name = "mastodon_credentials"
path = "examples/mastodon_credentials.rs"
[[example]]
name = "mastodon_instance"
path = "examples/mastodon_instance.rs"
[[example]]
name = "mastodon_marker"
path = "examples/mastodon_marker.rs"
[[example]]
name = "mastodon_media"
path = "examples/mastodon_media.rs"
[[example]]
name = "mastodon_post_with_media"
path = "examples/mastodon_post_with_media.rs"
[[example]]
name = "mastodon_post_with_schedule"
path = "examples/mastodon_post_with_schedule.rs"
[[example]]
name = "mastodon_relationship"
path = "examples/mastodon_relationship.rs"
[[example]]
name = "mastodon_search"
path = "examples/mastodon_search.rs"
[[example]]
name = "mastodon_streaming"
path = "examples/mastodon_streaming.rs"
[[example]]
name = "mastodon_unauthorized_local"
path = "examples/mastodon_unauthorized_local.rs"
[[example]]
name = "mastodon_update_credentials"
path = "examples/mastodon_update_credentials.rs"
[[example]]
name = "pleroma_authorization"
path = "examples/pleroma_authorization.rs"
[[example]]
name = "pleroma_conversations"
path = "examples/pleroma_conversations.rs"
[[example]]
name = "pleroma_credentials"
path = "examples/pleroma_credentials.rs"
[[example]]
name = "pleroma_delete_status"
path = "examples/pleroma_delete_status.rs"
[[example]]
name = "pleroma_instance"
path = "examples/pleroma_instance.rs"
[[example]]
name = "pleroma_marker"
path = "examples/pleroma_marker.rs"
[[example]]
name = "pleroma_notifications"
path = "examples/pleroma_notifications.rs"
[[example]]
name = "pleroma_post_with_media"
path = "examples/pleroma_post_with_media.rs"
[[example]]
name = "pleroma_post_with_schedule"
path = "examples/pleroma_post_with_schedule.rs"
[[example]]
name = "pleroma_relationship"
path = "examples/pleroma_relationship.rs"
[[example]]
name = "pleroma_streaming"
path = "examples/pleroma_streaming.rs"
[dependencies.async-trait]
version = "0.1.80"
[dependencies.chrono]
version = ">=0.4.38"
features = ["serde"]
[dependencies.futures-util]
version = ">=0.3.30"
[dependencies.hex]
version = "0.4"
[dependencies.oauth2]
version = "4.4"
[dependencies.rand]
version = "0.8"
[dependencies.regex]
version = ">=1.10.4"
[dependencies.reqwest]
version = ">=0.12.3"
features = [
"json",
"multipart",
"stream",
]
default-features = false
[dependencies.serde]
version = "1.0.197"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.115"
[dependencies.sha1]
version = "0.10"
[dependencies.thiserror]
version = ">=1.0.58"
[dependencies.tokio]
version = ">=1.37.0"
features = ["full"]
[dependencies.tokio-tungstenite]
version = "0.24"
features = ["url"]
[dependencies.tokio-util]
version = "0.7.10"
features = ["codec"]
[dependencies.tracing]
version = "0.1.40"
[dependencies.url]
version = "2.5.0"
[dependencies.urlencoding]
version = "2.1"
[dependencies.uuid]
version = "1.8"
features = ["v4"]
[dev-dependencies.tracing-subscriber]
version = "0.3.18"
features = ["env-filter"]
[features]
default = ["rustls-tls"]
native-tls = [
"tokio-tungstenite/native-tls",
"reqwest/native-tls",
"oauth2/native-tls",
]
rustls-tls = [
"tokio-tungstenite/rustls-tls-native-roots",
"reqwest/rustls-tls",
"oauth2/rustls-tls",
]