#engine #ducc #inspiration

ducc

Rust bindings for Duktape, the embedded JavaScript engine

6 releases

Uses old Rust 2015

0.1.5 Jul 10, 2020
0.1.4 Mar 27, 2020
0.1.3 Feb 24, 2020
0.1.2 Oct 11, 2019
0.1.0 Sep 21, 2019

#606 in Web programming

Download history 29842/week @ 2024-12-12 25604/week @ 2024-12-19 13842/week @ 2024-12-26 19749/week @ 2025-01-02 26916/week @ 2025-01-09 29884/week @ 2025-01-16 28038/week @ 2025-01-23 29458/week @ 2025-01-30 37738/week @ 2025-02-06 37232/week @ 2025-02-13 34833/week @ 2025-02-20 29699/week @ 2025-02-27 42183/week @ 2025-03-06 42344/week @ 2025-03-13 43610/week @ 2025-03-20 40356/week @ 2025-03-27

172,855 downloads per month
Used in 10 crates (2 directly)

MIT license

3.5MB
75K SLoC

C 70K SLoC // 0.2% comments Rust 5K SLoC // 0.0% comments

ducc

I found that all of the other Duktape bindings were either outdated or incomplete for my needs. Here's yet another interface, but with all of the lessons I learned from using directly the unsafe FFI in a production setting.

Inspiration

Deep gratitude to kyren/rlua, which provided inspiration and some directly copied code snippets. Lua and Duktape share a very similar API, and so do rlua and ducc. Also incredibly inspirational was zrkn/rlua_serde.

Dependencies