Skip to content

Commit

Permalink
chore: remove main fn (#101)
Browse files Browse the repository at this point in the history
make clippy happy
  • Loading branch information
mattsse authored Apr 13, 2024
1 parent 6a2e629 commit ce808f4
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@ Example usage:
```rust
use foundry_compilers::{Project, ProjectPathsConfig};

fn main() {
// configure the project with all its paths, solc, cache etc.
let project = Project::builder()
.paths(ProjectPathsConfig::hardhat(env!("CARGO_MANIFEST_DIR")).unwrap())
.build()
.unwrap();
let output = project.compile().unwrap();

// Tell Cargo that if a source file changes, to rerun this build script.
project.rerun_if_sources_changed();
}
// configure the project with all its paths, solc, cache etc.
let project = Project::builder()
.paths(ProjectPathsConfig::hardhat(env!("CARGO_MANIFEST_DIR")).unwrap())
.build()
.unwrap();
let output = project.compile().unwrap();

// Tell Cargo that if a source file changes, to rerun this build script.
project.rerun_if_sources_changed();
```

0 comments on commit ce808f4

Please sign in to comment.