curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source "$HOME/.cargo/env"
3. In the directory where you cloned the repository, run the following command to initialize and update all submodules: git submodule update --init --recursive -f
4. Build the CLI tool and all required dependencies: cargo build –release
5. Compile and run the binary with the help
flag to view the full list of available CLI commands and parameters: cargo run --bin cli -- --help
./target/release/fastedge-run http --help
.
./target/release/fastedge-run http -w ../FastEdge-examples/rust/target/wasm32-wasip1/release/print.wasm –-port 8080
To view the list of all printed headers, run curl http://localhost:8080
./target/release/fastedge-run http -w ../FastEdge-examples/rust/target/wasm32-wasip1/release/markdown.wasm env BASE=https://raw.githubusercontent.com/G-Core/FastEdge-lib/main --port 8080
After executing the command, you can run the FastEdge application, which will output the contents of the README: http://localhost:8080/README.md
./target/release/fastedge-run http -w ../FastEdge-examples/rust/target/wasm32-wasip1/release/print.wasm –-geo --port 8081
To view the list of sample geo headers, run curl http://localhost:8081
. You should see an output similar to the following: