refactor(web): start Go ABI rewrite of plugins/web (W-G0)
Archive the Rust web plugin and add a Go c-shared skeleton with ABI v2 bridge, build script, design doc/ADR, and smoke test so multi-language plugins and full web parity can proceed wave by wave. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fb6254e501
commit
ca40c698a2
42 files changed
+955
-3
No files matched your search
@@ -231,6 +231,17 @@ fn find_native_plugin(short: &str) -> Result<PathBuf> {
|
||||
candidates.push(td.join("release").join(&name));
|
||||
}
|
||||
if let Ok(cwd) = env::current_dir() {
|
||||
// Go web plugin (ext-web-go-rewrite): prefer plugins/web/build over cargo target/
|
||||
// so `cargo build -p marqdo_plugin_web` (rust archive) does not mask the Go .so.
|
||||
if short == "web" {
|
||||
let mut dir = cwd.clone();
|
||||
for _ in 0..6 {
|
||||
candidates.push(dir.join("plugins").join("web").join("build").join(&name));
|
||||
if !dir.pop() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
candidates.push(cwd.join("target").join("debug").join(&name));
|
||||
candidates.push(cwd.join("target").join("release").join(&name));
|
||||
candidates.push(cwd.join("ext").join("native").join(&name));
|
||||
@@ -239,6 +250,9 @@ fn find_native_plugin(short: &str) -> Result<PathBuf> {
|
||||
for _ in 0..6 {
|
||||
candidates.push(dir.join("target").join("debug").join(&name));
|
||||
candidates.push(dir.join("target").join("release").join(&name));
|
||||
if short == "web" {
|
||||
candidates.push(dir.join("plugins").join("web").join("build").join(&name));
|
||||
}
|
||||
if !dir.pop() {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user