# 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 = "mostro-core"
version = "0.8.0"
authors = ["Francisco Calderón <negrunch@grunch.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mostro Core library"
homepage = "https://mostro.network"
readme = "README.md"
license = "MIT"
repository = "https://github.com/MostroP2P/mostro-core"
[package.metadata.release]
allow-branch = ["main"]
pre-release-hook = [
"sh",
"-c",
'cargo fmt --all && cargo clippy --all-targets --all-features -- -D warnings && if [ -n "${GITHUB_TOKEN:-}" ]; then GITHUB_TOKEN="$GITHUB_TOKEN" git cliff --unreleased --github-repo MostroP2P/mostro-core -o CHANGELOG.md --tag {{version}}; else git cliff --unreleased -o CHANGELOG.md --tag {{version}}; fi && if [ "$DRY_RUN" != "true" ]; then git diff --quiet CHANGELOG.md || { git add CHANGELOG.md && git commit -m "Update CHANGELOG for version {{version}}"; }; else echo "DRY RUN: Skip git add and commit"; fi',
]
publish = false
push = true
sign-commit = true
sign-tag = true
tag = true
verify = true
[features]
default = ["wasm"]
sqlx = [
"dep:wasm-bindgen",
"dep:sqlx",
"dep:sqlx-crud",
]
wasm = ["dep:wasm-bindgen"]
[lib]
name = "mostro_core"
crate-type = [
"cdylib",
"lib",
]
path = "src/lib.rs"
[dependencies.bitcoin]
version = "0.32.7"
[dependencies.chrono]
version = "0.4.38"
[dependencies.nostr-sdk]
version = "0.43.0"
[dependencies.serde]
version = "1.0.149"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.142"
[dependencies.sqlx]
version = "0.6.2"
features = [
"runtime-tokio-rustls",
"sqlite",
"macros",
"chrono",
"uuid",
]
optional = true
[dependencies.sqlx-crud]
version = "0.4.0"
features = ["runtime-tokio-rustls"]
optional = true
[dependencies.uuid]
version = "1.18.0"
features = [
"v4",
"fast-rng",
"macro-diagnostics",
"serde",
"js",
]
[dependencies.wasm-bindgen]
version = "0.2.92"
optional = true