#runnable #interface #callable #java #traits #mimic #callable-t

rust_runnables

Rust trait 模拟 Java 中的 Runnable 和 Callable 接口

2 个不稳定版本

使用旧的 Rust 2015

0.2.0 2016年7月31日
0.1.0 2016年5月1日

#4#mimic


vampire_api 中使用

Apache-2.0

6KB

Rust Runnables

Build Status Crates.io

Rust trait 模拟 Java 中的 RunnableCallable<T> 接口。

用法

请参阅 src/lib.rs 中的代码示例。

构建

  1. 确保已安装 Rust (稳定版) 和 Cargo

  2. 运行以下命令

    cargo build && cargo test
    

发布

  1. 确保 最后一个构建 成功

  2. 标记提交

    git tag 0.0.1  # see Cargo.toml
    
  3. 发布包

    确保您有 发布 权限,并且已 登录 到 Cargo,然后运行

    cargo publish
    
  4. Cargo.toml 更新到下一个版本

许可证

根据 Apache 许可证,版本 2.0 许可

没有运行时依赖