Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshka/kasuari
https://github.com/joshka/kasuari
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joshka/kasuari
- Owner: joshka
- License: apache-2.0
- Created: 2024-10-03T22:19:48.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T09:30:13.000Z (27 days ago)
- Last Synced: 2024-10-25T07:07:02.631Z (26 days ago)
- Language: Rust
- Size: 77.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Kasuari
A Rust implementation of the Cassowary constraint solving algorithm ([Badros et. al 2001]). It is
based heavily on the implementation the C++ [Kiwi] library. The implementation does however differ
in some details.This library is a fork of [Cassowary-rs], by Dylan Ede, which hasn't been maintained since 2018.
`Kasuari` is the Indonesian name for the Cassowary bird.Cassowary is designed for solving constraints to lay out user interfaces. Constraints typically take
the form "this button must line up with this text box", or "this box should try to be 3 times the
size of this other box". Its most popular incarnation by far is in Apple's Autolayout system for Mac
OS X and iOS user interfaces. UI libraries using the Cassowary algorithm manage to achieve a much
more natural approach to specifying UI layouts than traditional approaches like those found in HTML.This library is a low level interface to the solving algorithm, though it tries to be as convenient
as possible. As a result it does not have any intrinsic knowledge of common user interface
conventions like rectangular regions or even two dimensions. These abstractions belong in a higher
level crate.For more information, please read the [Kasuari API docs].
## Getting Started
Add this crate to your Cargo.toml file
```shell
cargo add kasuari
```## License
Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](./LICENSE-APACHE)
- MIT license ([LICENSE-MIT](./LICENSE-MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.[Badros et. al 2001]: https://constraints.cs.washington.edu/solvers/cassowary-tochi.pdf
[Kiwi]: https://github.com/nucleic/kiwi
[Cassowary-rs]: https://crates.io/crates/cassowary
[Kasuari API docs]: https://docs.rs/kasuari