https://github.com/LottieFiles/dotlottie-rs Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} LottieFiles / dotlottie-rs Public * Notifications * Fork 1 * Star 28 * dotlottie.io License MIT license 28 stars 1 fork Branches Tags Activity Star Notifications * Code * Issues 9 * Pull requests 7 * Discussions * Actions * Projects 1 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights LottieFiles/dotlottie-rs This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 148 Commits .github/workflows .github/ workflows .vscode .vscode demo-player demo-player deps/modules deps/modules dotlottie-ffi dotlottie-ffi dotlottie-fms dotlottie-fms dotlottie-rs dotlottie-rs .gitignore .gitignore .gitmodules .gitmodules .mac-setup.sh .mac-setup.sh BUILD_SYSTEM.md BUILD_SYSTEM.md CHANGELOG.md CHANGELOG.md Cargo.toml Cargo.toml LICENSE LICENSE Makefile Makefile README.md README.md knope.toml knope.toml node-example.mjs node-example.mjs web-example.html web-example.html View all files Repository files navigation * README * MIT license dotLottie Rust CI GitHub contributors GitHub [201124166-] dotLottie Rust This is the Rust implementation of the dotLottie player and its related tools. It utilizes uniffi-rs to generate FFI bindings for Kotlin, Swift, and WebAssembly (WASM). these bindings are then used in the native dotLottie players for Android, iOS, and Web bringing consistency of playback and dotLottie features across all platforms. flowchart TD A[dotLottie-web] --> WASM+Bindings[WASM Bindings] B[dotLottie-ios] --> swift+Bindings[Swift Bindings] C[dotLottie-android] --> kotlin+Bindings[Kotlin Bindings] WASM+Bindings --> dotLottie-ffi[dotLottie-ffi \n 'uniffi bindings'] swift+Bindings --> dotLottie-ffi[dotLottie-ffi \n 'uniffi bindings'] kotlin+Bindings --> dotLottie-ffi[dotLottie-ffi \n 'uniffi bindings'] dotLottie-ffi --> dotlottiers[dotLottie-rs \n 'Core player'] dotlottiers --> Thorvg[Thorvg \n 'Lottie renderer'] dotlottiers --> dotlotttie-fms[dotLottie-fms \n'File manager'] What is dotLottie? dotLottie is an open-source file format that aggregates one or more Lottie files and their associated resources into a single file. They are ZIP archives compressed with the Deflate compression method and carry the file extension of ".lottie". Learn more about dotLottie. Features dotLottie-rs builds on the Lottie format, adding powerful quality of life improvements and new features: * Theming support * Multi-animation support * Built-in interactivity powered by state machines (in development) * Reduced animation file sizes * Feature parity across platforms * Guarenteed visual consistancy across platforms (Thanks to the Thorvg renderer) Available Players dotLottie-rs serves as a core player from which our framework players use: * [dotlottie-web] (https://github.com/LottieFiles/dotlottie-web) * [dotlottie-android] (https://github.com/LottieFiles/ dotlottie-android) * [dotlottie-ios] (https://github.com/LottieFiles/dotlottie-ios) Repository contents * Crates * Development * License Crates * dotlottie-rs: The core library for dotLottie native players * dotlottie-fms: The dotLottie file management system library * dotlottie-ffi: The FFI bindings for dotLottie core player to kotlin, swift and wasm * demo-player: A demo player for dotLottie written in Rust Development Build Instructions To build for all target platforms, it would be best to use a Mac. You will also need GNU make installed, at a bare minimum. To ensure that your local machine has all the other necessary tools installed to build the project, run the following from the root of the repo: make mac-setup Performing builds Builds can be performed for the following groups of targets: * android * apple * WASM For android and apple, builds will be performed for all supported architectures, whereas for WASM, only a single target will be built. These names refer to Makefile targets that can be used to build them. For example, to build all android targets, execute the following: make android To build all targets, execute the following: make all Other useful targets * demo-player: Build the demo player * clean: Cleanup rust build artifacts * distclean: Cleanup ALL build artifacts More information can be found by using the help target: make help Release Process Manually execute the Create Release PR Github Action workflow to create a release PR. This will include all changes since the last release. This repo uses changesets to determine the new release version. The knope tool can be installed locally and used to simply the creation of changeset files. The release PR should be checked for correctness and then merged. Once that is done, the Release Github Actions workflow will be started automatically to do the work of actually creating the new release and building & uploading the related release artifacts. Relevant Tools * For your dotLottie creation and modification needs * Tools for parsing Lottie animations License MIT (c) LottieFiles About dotlottie.io Resources Readme License MIT license Activity Custom properties Stars 28 stars Watchers 3 watching Forks 1 fork Report repository Releases 5 0.1.16 (2024-04-03) Latest Apr 3, 2024 + 4 releases Packages 0 No packages published Contributors 6 * @theashraf * @samuelOsborne * @afsalz * @hermet * @github-actions[bot] Languages * Rust 69.4% * Makefile 19.6% * HTML 5.1% * C++ 3.1% * Shell 1.5% * JavaScript 1.3% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.