#snippets #language #networking #variety #programming-language #code-execution #code-runner

bin+lib hakoniwa-code-runner

在网络中运行多种语言的代码片段

3 个版本

0.2.3 2023年8月28日
0.2.1 2022年9月11日
0.2.0 2022年9月5日

#898 in 开发工具

MIT/Apache

38KB
715

Hakoniwa 代码运行器

在网络中运行多种语言的代码片段。

安装

Cargo

  • 安装 libseccompprotobuf-compiler
  • 安装 rust 工具链
  • 运行 cargo install hakoniwa-code-runner

用法

$ hakoniwa-code-runner start -c app.toml
2022-09-05T06:51:32.207731Z  INFO hcr::server: listening on 127.0.0.1:8080

更多示例可以在 examples 中找到。例如。

开发

检出仓库后,运行 make devcontainer 来构建用于开发的容器。然后,运行 make test 来运行测试。或者运行 make start-server 来启动监听 8080 的 hakoniwa-code-runner

许可证

许可方式如下

任选其一。

贡献

除非你明确声明,否则任何提交给工作内容的贡献,根据 Apache-2.0 许可证定义,将双重许可,如上所述,不附加任何其他条款或条件。

依赖项

~23–37MB
~566K SLoC