pub fn generate_from_abi_with_config(
abi_path: impl AsRef<Path>,
output_dir: impl AsRef<Path>,
config: BuildConfig,
) -> AptosResult<()>Expand description
Generates Rust code from a single ABI file with custom configuration.
ยงErrors
Returns an error if:
- The ABI file cannot be read
- The ABI JSON cannot be parsed
- Code generation fails
- The output directory cannot be created
- The output file cannot be written