Thanks to visit codestin.com
Credit goes to programming.dev

Bazebara

  • 4 Posts
  • 29 Comments
Joined 2 years ago
Codestin Search App
Cake day: October 21st, 2023

Codestin Search App
  • BazebaraOPtoRustdeku_string 0.4.1 release
    Codestin Search App
    Codestin Search App
    Codestin Search App
    3
    ·
    6 days ago

    Deku is a declarative binary parser. deku_string is an extension which currently provides utility wrappers for data vectors and unicode strings, which can be prefixed or fixed length. Additionally library provides support for 7-bit encoded integers from .NET.

    For example, I often work with binary structures where strings are either length prefixed (with zero character in a buffer) or in fixed size buffer with a zero-ended sting inside.

    There’s multiple examples with custom writer and reader functions, which work, but are less convenient to use.

    Any additional ideas for utilities are welcome.










  • BazebaratoRustWhich GUI crate?
    Codestin Search App
    Codestin Search App
    Codestin Search App
    1
    ·
    3 months ago

    Currently I use WxWidgets and Cocoa for macOS.

    The best would probably be pure native UI with static/dynamic library in Rust for logic. Sounds hard, but it’s the best option in my opinion.

    My 2 cents is below. Your decision depends on your tasks, preferences and targets.

    • GPU framework maybe fast, but accessibility at 0
    • HTML backend is nice, but I can’t choice other than native, which limits me quite hard for target user base. And I don’t like JS if not strictly required (it’s a personal preference).
    • GTK on macOS and windows is quite hard to install and I don’t like visuals
    • QT is in grey zone if static (non-GPL project), and I haven’t found good way to bundle it if dynamic
    • ImGUI is nice but I don’t know if they support HiDPI monitors and accessibility is not the highest
    • fltk is nice, but 1) many things you’ll have to write by you own, rewriting sometimes from FLTK2 C++ code… and community could be more chill and friendly
    • Windows Metro UI… probably no crates
    • Win32 API GUI works perfect
    • Swift… probably yes, but it’s very OS-dependent
    • Cocoa — very nice for macOS.
    • current stop is WxWidgets: small, embedded, look… ok for now.
    • there’s some framework for iOS and Android, looks fine for me, but not my target ATM.