df_st_api 0.3.0-development-2

Starting an API server for the DF Storyteller project.
Documentation
[package]
name = "df_st_api"
version = "0.3.0-development-2" #:version
authors = ["ralpha <ralph.bisschops.dev@gmail.com>"]
edition = "2018"
description = "Starting an API server for the DF Storyteller project."
documentation = "https://docs.dfstoryteller.com/"
readme = "../README.md"
homepage = "https://dfstoryteller.com/"
repository = "https://gitlab.com/df_storyteller/df-storyteller"
license = "AGPL-3.0-or-later"
keywords = ["dwarf","fortress","storyteller"]
categories = ["command-line-utilities","encoding","games","web-programming"]

[badges]
gitlab = { repository = "https://gitlab.com/df_storyteller/df-storyteller", branch = "master" }
# See: https://doc.rust-lang.org/cargo/reference/manifest.html#the-badges-section

[dependencies]
okapi = "0.5.0-alpha-1"
rocket_cors = "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
juniper = "0.14"
juniper_rocket = "0.5"
rocket = { version = "0.4", features = ["tls"] }
anyhow = "1.0"
log = "0.4"
rust-embed = "5.5"
schemars = { version = "0.8.0-alpha-4", features = ["preserve_order"] }
sha2 = "0.9"

[dependencies.df_st_core]
path = "../df_st_core"
version = "0.3.0-development-2" #:version

[dependencies.df_st_db]
path = "../df_st_db"
version = "0.3.0-development-2" #:version
default-features = false

[dependencies.df_rocket_okapi]
path = "../df_rocket_okapi"
version = "0.4"

[dependencies.df_rocket_okapi_codegen]
path = "../df_rocket_okapi_codegen"
version = "0.4"

[dependencies.rocket_contrib]
version = "0.4"
default-features = false
features = ["json","serve"]

[dev-dependencies]
tempfile = "3.1"
pretty_assertions = "0.6"

[features]
default = ["sqlite"]

sqlite = ["rocket_contrib/diesel_sqlite_pool", "df_st_db/sqlite"]
postgres = ["rocket_contrib/diesel_postgres_pool", "df_st_db/postgres"]