Dify is both an executable binary that can be run, and a library that can be used in Rust programs.
Assuming you have Rust/Cargo installed, run this command in a terminal:
cargo install dify
It will make the dify command available in your PATH if you've allowed the PATH to be modified when installing Rust. cargo uninstall dify uninstalls.
dify
PATH
cargo uninstall dify
Run this command in a terminal, in your project's directory:
cargo add --dev dify
to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:
cargo add dify
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
dify = "0.7.4"
The dify library will be automatically available globally. Read the dify library documentation.
Back to the crate overview.