# 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 = "spring-batch-rs" version = "0.2.1" authors = ["Simon Boussekeyt "] description = "A toolkit for building enterprise-grade batch applications" documentation = "https://docs.rs/spring-batch-rs" readme = "README.md" keywords = [ "batch", "csv", "data", "json", "rdbc", ] license = "MIT OR Apache-2.0" repository = "https://github.com/sboussekeyt/spring-batch-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.dev] opt-level = 0 [profile.release] opt-level = 3 [lib] name = "spring_batch_rs" path = "src/lib.rs" [[example]] name = "generate_csv_file_from_json_file_with_processor" required-features = [ "csv", "json", ] [[example]] name = "generate_json_file_from_csv_string_with_fault_tolerance" required-features = [ "csv", "json", ] [[example]] name = "generate_json_file_from_fake_persons" required-features = [ "json", "fake", ] [[example]] name = "generate_csv_file_without_headers_from_fake_persons" required-features = [ "csv", "fake", ] [[example]] name = "log_records_from_postgres_database" required-features = [ "rdbc-postgres", "logger", ] [[example]] name = "insert_records_into_mysql_database" required-features = [ "rdbc-mysql", "csv", ] [[example]] name = "read_records_from_mongodb_database" required-features = [ "mongodb", "csv", ] [[example]] name = "write_records_to_mongodb_database" required-features = [ "mongodb", "csv", ] [dependencies.anyhow] version = "1.0.81" [dependencies.bson] version = "2.9.0" optional = true default-features = false [dependencies.csv] version = "1.3.0" optional = true [dependencies.fake] version = "2.9.2" features = ["time"] optional = true [dependencies.log] version = "0.4.20" [dependencies.mongodb] version = "2.8.2" optional = true default-features = false [dependencies.rand] version = "0.8.5" [dependencies.serde] version = "1.0.196" features = ["derive"] [dependencies.serde_json] version = "1.0.114" [dependencies.sqlx] version = "0.7.4" features = ["runtime-tokio"] optional = true [dependencies.thiserror] version = "1.0.58" [dependencies.time] version = "0.3.34" features = ["serde-human-readable"] optional = true [dependencies.tokio] version = "1.36.0" features = ["full"] [dependencies.uuid] version = "1.7.0" features = ["v4"] [dev-dependencies.env_logger] version = "0.11.1" [dev-dependencies.mockall] version = "0.12.1" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.tempfile] version = "3.10.0" [dev-dependencies.testcontainers-modules] version = "0.3.5" features = [ "postgres", "mysql", "mongo", ] [features] csv = ["dep:csv"] default = [] fake = [ "dep:fake", "dep:time", ] full = [ "csv", "json", "logger", "fake", "rdbc-postgres", "rdbc-mysql", "rdbc-sqlite", "mongodb", ] json = [] logger = [] mongodb = [ "mongodb/tokio-sync", "bson", ] rdbc = [] rdbc-mysql = [ "sqlx/mysql", "rdbc", ] rdbc-postgres = [ "sqlx/postgres", "rdbc", ] rdbc-sqlite = [ "sqlx/sqlite", "rdbc", ] tests-cfg = ["full"]