swift-bridge
blessed
swift-bridge | blessed | |
---|---|---|
16 | 22 | |
740 | 11,165 | |
- | - | |
7.0 | 0.0 | |
23 days ago | 2 months ago | |
Rust | JavaScript | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-bridge
-
macOS Apps in Rust
A bit late, but `swift-bridge` (https://github.com/chinedufn/swift-bridge) does this intelligently, and is probably what you're looking for.
- swift-bridge 0.1.37 supports passing `Box<dyn FnOnce(A, B) -> C>` from Rust to Swift
-
Rust playground on iOS
4) Another route that I tried is to develop a simple terminal app using SwiftUI with a Xcode project to build that app + link against a Rust library compiled for iOS with the actual logic. I used swift-bridge for this and it works really well, to the point where I have a custom logger that you can simply use the print stuff to SwiftUI from Rust using the log crate. Once I have a bit more time, I will probably try figuring out how to clean this up a bit more.
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Since Swift is your first target, I might recommend swift-bridge which can generate bindings for Rust async fns that Swift can call directly.
-
What's everyone working on this week (18/2022)?
I'm working on getting my GUI crate (https://github.com/audulus/rui) working on iOS (https://github.com/audulus/rui-ios). Multitouch will be fun. Shout out to the excellent work in swift-bridge: https://github.com/chinedufn/swift-bridge.
-
swift-bridge: type-safe interop between Swift and Rust
So that class SwiftString was actually unused. I've removed it here https://github.com/chinedufn/swift-bridge/pull/33 .
-
swift-bridge now supports calling async Rust functions from Swift
Here's an example of a Rust library that exposes an async function that uses reqwest to make an API call, and a main.swift that calls that async function.
-
Any good tutorials/examples on using a Rust library in Swift code for multiple targets?
Have you tried Swift Bridge? https://github.com/chinedufn/swift-bridge
- Swift-bridge: Call Rust from Swift and vice versa
blessed
-
Best Javascript libraries for TUI development?
I found blessed but it seems like it was last updated 8 years ago. So what are my options?
-
good high-level ncurses library
So far I found this library github.com/chjj/blessed which is very powerful, I need to render animated charts and other complex objects and for my purpose it is doing well.
-
Ink: React for interactive command-line apps
Alas https://github.com/chjj/blessed/issues/418#issuecomment-1533...
I considered blessed for a recent project, but ended up just simplifying the approach & making do with Inquirer + Meow instead due to the maintenance status. Haven't found anything else equivalent to blessed, other than Ink.
-
My 2022 side project: @steggy/tty. Custom widgets and utilities for building terminal apps on top of NestJS. Looking for testers / feedback
Inquirer is still probably the library that is most similar, if you are looking for comparisons to existing tools. My goal was to create a set of tools that uses the terminal window for a single operation at a time. The UI providing as much contextual information as possible to the user to know what actions they can perform, and any relevant information. A bit like a "choose your adventure" via terminal app sort of thing. Explicitly trying to stay clear of full screen and dashboard type stuff, like what blessed provides.
-
Like seriously why does not one does it ?
Not exactly a shell scripting framework, but y’all should check out blessed js. Weirdly enough I just found it yesterday and shit goes absolutely wild in the terminal
-
NodeJS Backend with UI Help. New to UI/Frameworks
Perhaps you’d like a terminal based UI? https://github.com/chjj/blessed
-
Command line applications
You can build them from scratch, or use one of many specialized libraries on NPM, like commander, yargs, blessed, terminal kit, prompts, and many more.
-
get input from user while continuously outputting
This is where libraries come in: https://github.com/chjj/blessed - this allows you to manage rendering in the terminal on your own, so you can have a scrolling box of text at the top and a "command line" at the bottom.
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
I was hoping to write my app in Rust as a learning exercise, but my alternative is https://www.npmjs.com/package/blessed, which is NodeJS. Ah well.
-
How to create terminal GUI?
Using this https://github.com/chjj/blessed
What are some alternatives?
swift - The Swift Programming Language
vorpal - Node's framework for interactive CLIs
cxx - Safe interop between Rust and C++
Inquirer.js - A collection of common interactive command line user interfaces.
repo
Ink - 🌈 React for interactive command-line apps
rust - Empowering everyone to build reliable and efficient software.
neo-blessed - A drop-in replacement for for Blessed. A high-level terminal interface library for node.js.
config-rs - ⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
KeyboardJS - A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts.
rui - Declarative Rust UI library
omelette - Omelette is a simple, template based autocompletion tool for Node and Deno projects with super easy API. (For Bash, Zsh and Fish)