[package]
edition = "2021"
rust-version = "1.92"
name = "fraiseql-cli"
version = "2.1.4"
authors = ["FraiseQL Team <team@fraiseql.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI tools for FraiseQL v2 - Schema compilation and development utilities"
homepage = "https://fraiseql.dev"
documentation = "https://docs.fraiseql.dev"
readme = "README.md"
keywords = [
"graphql",
"database",
"compiler",
"sql",
]
categories = [
"database",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fraiseql/fraiseql"
[package.metadata.binstall]
bin-dir = "fraiseql{ binary-ext }"
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/v{ version }/fraiseql-{ target }.tar.gz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[features]
default = []
federation = ["fraiseql-core/federation"]
mysql = [
"fraiseql-core/mysql",
"dep:sqlx",
"sqlx/mysql",
]
run-server = [
"dep:fraiseql-server",
"dep:axum",
]
sqlite = [
"fraiseql-core/sqlite",
"dep:sqlx",
"sqlx/sqlite",
]
sqlserver = [
"fraiseql-core/sqlserver",
"dep:bb8",
"dep:bb8-tiberius",
"dep:tiberius",
]
[lib]
name = "fraiseql_cli"
path = "src/lib.rs"
[[bin]]
name = "fraiseql-cli"
path = "src/main.rs"
[[test]]
name = "ai_agent_tests"
path = "tests/ai_agent_tests.rs"
[[test]]
name = "analyze_command_tests"
path = "tests/analyze_command_tests.rs"
[[test]]
name = "bench_rich_filters"
path = "tests/bench_rich_filters.rs"
[[test]]
name = "cli_federation_validation"
path = "tests/cli_federation_validation.rs"
required-features = ["federation"]
[[test]]
name = "cli_help_tests"
path = "tests/cli_help_tests.rs"
[[test]]
name = "converter_field_survival_test"
path = "tests/converter_field_survival_test.rs"
[[test]]
name = "converter_inject_params_test"
path = "tests/converter_inject_params_test.rs"
[[test]]
name = "cost_command_tests"
path = "tests/cost_command_tests.rs"
[[test]]
name = "dependency_graph_command_tests"
path = "tests/dependency_graph_command_tests.rs"
[[test]]
name = "diagnostic_snapshots"
path = "tests/diagnostic_snapshots.rs"
[[test]]
name = "e2e_schema_generation"
path = "tests/e2e_schema_generation.rs"
[[test]]
name = "explain_command_tests"
path = "tests/explain_command_tests.rs"
[[test]]
name = "extract_integration_test"
path = "tests/extract_integration_test.rs"
[[test]]
name = "federation_cli_advanced"
path = "tests/federation_cli_advanced.rs"
required-features = ["federation"]
[[test]]
name = "federation_cli_compose"
path = "tests/federation_cli_compose.rs"
required-features = ["federation"]
[[test]]
name = "federation_composition_advanced"
path = "tests/federation_composition_advanced.rs"
required-features = ["federation"]
[[test]]
name = "federation_composition_validator"
path = "tests/federation_composition_validator.rs"
required-features = ["federation"]
[[test]]
name = "federation_cross_subgraph_validation"
path = "tests/federation_cross_subgraph_validation.rs"
required-features = ["federation"]
[[test]]
name = "federation_cross_subgraph_validation_advanced"
path = "tests/federation_cross_subgraph_validation_advanced.rs"
required-features = ["federation"]
[[test]]
name = "federation_edge_cases"
path = "tests/federation_edge_cases.rs"
required-features = ["federation"]
[[test]]
name = "federation_graph_tests"
path = "tests/federation_graph_tests.rs"
required-features = ["federation"]
[[test]]
name = "federation_validation"
path = "tests/federation_validation.rs"
required-features = ["federation"]
[[test]]
name = "generate_round_trip_test"
path = "tests/generate_round_trip_test.rs"
[[test]]
name = "identifier_validation_test"
path = "tests/identifier_validation_test.rs"
[[test]]
name = "init_integration_test"
path = "tests/init_integration_test.rs"
[[test]]
name = "integration_compiler_field_rbac"
path = "tests/integration_compiler_field_rbac.rs"
[[test]]
name = "integration_custom_scalars"
path = "tests/integration_custom_scalars.rs"
[[test]]
name = "integration_domain_discovery"
path = "tests/integration_domain_discovery.rs"
[[test]]
name = "integration_rich_filters"
path = "tests/integration_rich_filters.rs"
[[test]]
name = "integration_toml_workflow"
path = "tests/integration_toml_workflow.rs"
[[test]]
name = "jsonb_column_preservation_test"
path = "tests/jsonb_column_preservation_test.rs"
[[test]]
name = "lint_command_tests"
path = "tests/lint_command_tests.rs"
[[test]]
name = "migrate_command_tests"
path = "tests/migrate_command_tests.rs"
[[test]]
name = "query_defaults_test"
path = "tests/query_defaults_test.rs"
[[test]]
name = "relay_compiler_test"
path = "tests/relay_compiler_test.rs"
[[test]]
name = "sbom_command_tests"
path = "tests/sbom_command_tests.rs"
[[test]]
name = "security_config_integration"
path = "tests/security_config_integration.rs"
[[test]]
name = "security_config_test"
path = "tests/security_config_test.rs"
[[test]]
name = "test_generate_views"
path = "tests/test_generate_views.rs"
[[test]]
name = "validate_documents_command_tests"
path = "tests/validate_documents_command_tests.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.bb8]
version = "0.8"
optional = true
[dependencies.bb8-tiberius]
version = "0.15"
optional = true
[dependencies.clap]
version = "4.5"
features = [
"derive",
"cargo",
"color",
"suggestions",
]
[dependencies.deadpool-postgres]
version = "0.14"
[dependencies.fraiseql-core]
version = "2.1.3"
features = [
"postgres",
"schema-lint",
]
default-features = false
[dependencies.fraiseql-server]
version = "2.1.3"
optional = true
[dependencies.glob]
version = "0.3"
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.notify]
version = "7.0"
[dependencies.prost]
version = "0.14"
[dependencies.prost-types]
version = "0.14"
[dependencies.regex]
version = "1.10"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"json",
]
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tiberius]
version = "0.12"
features = [
"tds73",
"native-tls",
]
optional = true
default-features = false
[dependencies.tokio]
version = "1.0"
features = [
"rt-multi-thread",
"macros",
"net",
"time",
"io-util",
"io-std",
"sync",
"signal",
"fs",
]
[dependencies.tokio-postgres]
version = "0.7"
features = [
"with-serde_json-1",
"with-uuid-1",
"with-chrono-0_4",
"with-serde_json-1",
]
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"ansi",
]
[dependencies.walkdir]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.insta]
version = "1"
features = ["yaml"]
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.temp-env]
version = "0.3"
features = ["async_closure"]
[dev-dependencies.tempfile]
version = "3.25"
[dev-dependencies.tower]
version = "0.5"
[lints.clippy]
cargo_common_metadata = "allow"
if_not_else = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_enumerate_index = "allow"
unused_self = "allow"
unwrap_used = "deny"
use_self = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
dead_code = "deny"
missing_docs = "deny"
unsafe_code = "forbid"
unused_imports = "warn"
unused_variables = "warn"