Rust/WASM 渐进迁移教科书——render-wasm/src/render.rs 2024-10 才引入已 314 次修改,靠带版本号的 feature flag(render-wasm/v1 + text-editor - 渐进式现代化优于重写——render-wasm/v1、text-editor/v2 这种带版本号的 feature flag 让新旧两代用户在同份代码里共存。 Global + 硬依赖约束) ——features.cljs 中 setup-wasm-features 用四层优先级 + conj/disj 表达「启用 render-wasm/v1 必须同时启用 text-editor index 而非 &Uuid 引用管理,直接砍掉 unsafe 生命周期;features.cljs 的 setup-wasm-features 表达「启用 render-wasm/v1 必须同时启用 text-editor
同样的,context-menu会区分两个环境,text-editor和workspace。 spec 这里存放的是一些测试用例,创建Package会生成一些默认的断言。 写测试确实是一个好习惯。
menu则是出现在Atom主菜单栏上: image.png 同样的,context-menu会区分两个环境,text-editor和workspace。
">