1+ [workspace ]
2+ members = [" ." , " sqlx_gen_macros" ]
3+
14[package ]
25name = " sqlx-gen"
36version = " 0.4.0"
@@ -9,7 +12,28 @@ readme = "README.md"
912keywords = [" sqlx" , " codegen" , " postgres" , " mysql" , " sqlite" ]
1013categories = [" database" , " development-tools" ]
1114
15+ [[bin ]]
16+ name = " sqlx-gen"
17+ required-features = [" cli" ]
18+
19+ [features ]
20+ default = [" cli" ]
21+ cli = [
22+ " dep:sqlx" ,
23+ " dep:tokio" ,
24+ " dep:clap" ,
25+ " dep:heck" ,
26+ " dep:thiserror" ,
27+ " dep:quote" ,
28+ " dep:proc-macro2" ,
29+ " dep:syn" ,
30+ " dep:prettyplease" ,
31+ " dep:log" ,
32+ " dep:env_logger" ,
33+ ]
34+
1235[dependencies ]
36+ sqlx-gen-macros = { path = " sqlx_gen_macros" , version = " 0.4.0" }
1337sqlx = { version = " 0.8" , features = [
1438 " runtime-tokio" ,
1539 " tls-rustls-ring" ,
@@ -19,15 +43,17 @@ sqlx = { version = "0.8", features = [
1943 " chrono" ,
2044 " uuid" ,
2145 " json" ,
22- ] }
23- tokio = { version = " 1" , features = [" full" ] }
24- clap = { version = " 4" , features = [" derive" , " env" ] }
25- heck = " 0.5"
26- thiserror = " 2"
27- quote = " 1"
28- proc-macro2 = " 1"
29- syn = " 2"
30- prettyplease = " 0.2"
46+ ], optional = true }
47+ tokio = { version = " 1" , features = [" full" ], optional = true }
48+ clap = { version = " 4" , features = [" derive" , " env" ], optional = true }
49+ heck = { version = " 0.5" , optional = true }
50+ thiserror = { version = " 2" , optional = true }
51+ quote = { version = " 1" , optional = true }
52+ proc-macro2 = { version = " 1" , optional = true }
53+ syn = { version = " 2" , optional = true }
54+ prettyplease = { version = " 0.2" , optional = true }
55+ log = { version = " 0.4" , optional = true }
56+ env_logger = { version = " 0.11" , optional = true }
3157
3258[dev-dependencies ]
3359pretty_assertions = " 1"
0 commit comments