hanki

Licensing

Hanki is licensed under the Zero-Clause BSD license (0BSD). The full text is in LICENSE.

The license covers the compiler, the bytecode interpreter, the native runtime, the standard library, the tools, the documentation, the grammar, the examples and the site. Third-party code in the tree is listed below. The license grants no right to the Hanki name.

Programs built with Hanki

A native binary statically links the Hanki runtime and the standard library, and a program run by the bytecode interpreter loads the same standard library. 0BSD requires no copyright notice, license text or source offer with either. This applies to a distributed binary, to distributed .hk source and to a program run as a service. The author of a program chooses its license, a proprietary one included. The Rust dependencies linked into a native binary have a requirement of their own, described below under Third-party code.

Third-party code

A binary built by hanki build links Rust dependencies under their own permissive licenses, which require their notices to accompany a distributed binary. A release bundle or package includes THIRD-PARTY-NOTICES beside the toolchain's license files, generated from the locked Cargo dependency graph and containing each package archive's own LICENSE, COPYING, NOTICE, COPYRIGHT or UNLICENSE file verbatim. That file satisfies the requirement and must be distributed with the binary. Dependencies a program adds through its own build or packaging are not in the file.

deny.toml lists the licenses a dependency may have. In this tree, editor/tree-sitter-hanki/src/tree_sitter/parser.h is copied from the tree-sitter project under the MIT license, stated in its header.

Contributions

Contributions are accepted under 0BSD.