Skip to content

Commit

Permalink
Only declare module tree once in trustfall_stubgen. (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Jul 7, 2023
1 parent bbade61 commit ede029e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions trustfall_stubgen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ use std::path::PathBuf;
use anyhow::Context;
use clap::Parser;

mod adapter_creator;
mod edges_creator;
mod entrypoints_creator;
mod properties_creator;
mod root;
mod util;

/// Generate a Trustfall adapter stub implementation for a given schema.
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
Expand Down Expand Up @@ -64,5 +57,5 @@ fn main() -> Result<(), anyhow::Error> {
let target = &cli.target;
std::fs::create_dir_all(target).context("failed to create target directory")?;

root::generate_rust_stub(&schema_text, target)
trustfall_stubgen::generate_rust_stub(&schema_text, target)
}

0 comments on commit ede029e

Please sign in to comment.