Skip to content

Commit

Permalink
chore: remove main fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Apr 13, 2024
1 parent 8b10c41 commit 1a060d2
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 1a060d2

Please sign in to comment.