Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Cargo.toml from template #38

Closed
billy1624 opened this issue Aug 30, 2022 · 0 comments · Fixed by #40
Closed

Generate Cargo.toml from template #38

billy1624 opened this issue Aug 30, 2022 · 0 comments · Fixed by #40

Comments

@billy1624
Copy link
Member

Personally, the generated Cargo.toml is a bit difficult to read.

[package]
edition = '2021'
name = 'generated_expanded'
version = '0.1.0'
[dependencies.async-graphql]
version = '4.0.10'
features = [
    'decimal',
    'chrono',
    'dataloader',
]

[dependencies.async-graphql-poem]
version = '4.0.10'

[dependencies.async-trait]
version = '0.1.53'

[dependencies.heck]
version = '0.4.0'

[dependencies.itertools]
version = '0.10.3'

[dependencies.poem]
version = '1.3.29'

[dependencies.sea-orm]
version = '0.7.0'
features = [
    'sqlx-sqlite',
    'runtime-async-std-native-tls',
]

[dependencies.seaography_derive]
path = '../derive'

[dependencies.tokio]
version = '1.17.0'
features = [
    'macros',
    'rt-multi-thread',
]

[dependencies.tracing]
version = '0.1.34'

[dependencies.tracing-subscriber]
version = '0.3.11'
[dev-dependencies.serde_json]
version = '1.0.82'

[workspace]
members = []

I'd prefer it to define dependency in the short form (one line format):

  • seaography/Cargo.toml

    Lines 8 to 11 in ea575d6

    [dependencies]
    seaography_generator = { path = "./generator" }
    clap = { version = "3.2.6", features = ["derive"] }
    async-std = { version = "1.12.0", features = [ "attributes", "tokio1" ] }

I'd suggest you to generate it with a template:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant