refactor: rename WasmBuildable::repo_url to source_dir (#445)

* refactor: rename WasmBuildable::repo_url to source_dir

The field receives a local directory path (e.g. "tools-src/gmail"), not a
URL. Rename to source_dir to accurately reflect its purpose.

Adds #[serde(alias = "repo_url")] for backwards compatibility with any
previously serialized data.

Closes #329

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* refactor: rename extract_url to extract_source

The function can return a local directory path, not just a URL.
Addresses review feedback on PR #445.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Zaki Manian
2026-03-01 16:36:46 -08:00
committed by GitHub
co-authored by Claude Opus 4.6
parent bb279ad822
commit a21dba0ac1
5 changed files with 23 additions and 22 deletions
+3 -2
View File
@@ -83,9 +83,10 @@ pub enum ExtensionSource {
#[serde(default)]
capabilities_url: Option<String>,
},
/// Build from source repository.
/// Build from local source directory.
WasmBuildable {
repo_url: String,
#[serde(alias = "repo_url")]
source_dir: String,
#[serde(default)]
build_dir: Option<String>,
/// Crate name used to locate the build artifact binary.