Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@higress/wasm-assemblyscript
Advanced tools
此 SDK 用于使用 AssemblyScript 语言开发 Higress 的 Wasm 插件。
创建一个新的 AssemblyScript 项目。
npm init
npm install --save-dev assemblyscript
npx asinit .
在asconfig.json文件中,作为传递给asc编译器的选项之一,包含"use": "abort=abort_proc_exit"。
{
"options": {
"use": "abort=abort_proc_exit"
}
}
将"@higress/proxy-wasm-assemblyscript-sdk": "^0.0.1"
和"@higress/wasm-assemblyscript": "^0.0.3"
添加到你的依赖项中,然后运行npm install
。
npm run asbuild
构建结果将在build
文件夹中。其中,debug.wasm
和release.wasm
是已编译的文件,在生产环境中建议使用release.wasm
。
注:如果需要插件带有 name section 信息需要带上"debug": true
,编译参数解释详见using-the-compiler。
"release": {
"outFile": "build/release.wasm",
"textFile": "build/release.wat",
"sourceMap": true,
"optimizeLevel": 3,
"shrinkLevel": 0,
"converge": false,
"noAssert": false,
"debug": true
}
此 SDK 使用的 AssemblyScript 版本为0.27.29
,参考AssemblyScript Status该版本尚未支持闭包、异常、迭代器等特性,并且JSON,正则表达式等功能还尚未在标准库中实现,暂时需要使用社区提供的实现。
FAQs
此 SDK 用于使用 AssemblyScript 语言开发 Higress 的 Wasm 插件。
We found that @higress/wasm-assemblyscript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.