When using dioxus it would be greate to use the types from this library on the backend and the front end. To do this we need to be able to cut out the sqlx package because it uses mio which doesn't compile to WASM. To do this we put the database code behind a database feature flag. The Publisher feature will also trigger the database flag.
29 lines
774 B
TOML
29 lines
774 B
TOML
[package]
|
|
name = "tavern"
|
|
version = "0.2.5"
|
|
edition = "2024"
|
|
description = "A blogging system that will allow you to write your blog in Markdown and then display it in HTML using Dioxus."
|
|
repository = "/CyberMages/tavern"
|
|
authors = ["CyberMages LLC <Software@CyberMagesLLC.com>", "Jason Travis Smith <Myrddin@CyberMages.tech>"]
|
|
readme = "README.md"
|
|
license = "Apache-2.0"
|
|
|
|
|
|
|
|
[dependencies]
|
|
chrono = { version = "0.4.41", features = ["serde"] }
|
|
pulldown-cmark = "0.13.0"
|
|
serde = { version = "1.0.219", features = ["derive"] }
|
|
sqlx = { version = "0.8.6", features = ["sqlite", "chrono", "runtime-tokio"], optional = true}
|
|
toml = "0.9.5"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
|
|
|
|
[features]
|
|
default = []
|
|
database = ["sqlx"]
|
|
publisher = ["database"]
|