cacao
diesel
Our great sponsors
cacao | diesel | |
---|---|---|
22 | 82 | |
1,722 | 11,740 | |
- | 2.1% | |
6.7 | 9.5 | |
about 2 months ago | 7 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
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.
cacao
-
So You Want to Ship a Command-Line Tool for macOS
This is really specific, but for this point in the article:
> There’s a long guide on Embedding a Command-Line Tool in a Sandboxed App, so I followed that, and then slowly, painfully, factored Xcode out of it, so that I wouldn’t have to figure out how to get a 10GB Xcode install onto the CI machine (remember, you need to be signed in to an Apple ID to download Xcode, and there’s no way to do it from the command-line).
You could actually solve this with Rust and no Xcode whatsoever. cacao [1] and cargo-bundle [2] will produce an app bundle you could sign/notarize/distribute without needing to ever open Xcode.
- GitHub - ryanmcgrath/cacao: Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
- macOS Apps in Rust
-
A new open-sourcing project launches!!! A declarative, compose-based and cross-platform GUI
I've had basic animation support in cacao for about a year now, but I don't think anybody even realizes it.
-
Library Concept for Interoperating with Objective-C - Seeking Feedback
But I will reiterate what I say on many posts like these, which is that it would be even cooler if we could stop having a million projects reinvent this wheel - and I say this as someone who wrote a large Rust library that is backed by ObjC. madsmtm has an ongoing effort to put together a best in class ObjC Rust wrapper, which would be great to see even more support for.
-
What bindings do I need for making a modern Windows 11 GUI?
MacOS; I have to call the AppKit API. I can use a library like this which offers Rust bindings for AppKit - otherwise I can write my own maybe?
-
Can I Use Rust For IOS Development?
Yes, you can: https://github.com/ryanmcgrath/cacao
-
Yet Another macOS bindings library
This is not meant for making apps.. If you'd like to make apps use cacao instead. I am only working on this library in my spare time in hopes of getting to learn more about the FFI between Rust and Objective-C/Swift. So far I think FFI is very exciting :)
-
AMA: How we built Warp, a Rust-based terminal
Hmm, I maintain cacao. The Objective-C interfacing has always felt like there's multiple projects reimplementing the same thing - ultimately really curious to see the UI framework once it's out!
I maintain cacao, which does exactly this. :)
diesel
-
Top 10 Rusty Repositories for you to start your Open Source Journey
7. Diesel
-
cargo-dist pre-release looking for feedback!
First of all thanks for making this great tool. As it happens I currently toy around with using it for diesel-cli releases. See the WIP PR here. I think diesel-cli is a good example of a tool that depends on system libraries as it needs to link native database drivers, so this new release is welcome. Defining the dependencies seems to allow easily building things on x86_64-unknown-linux-gnu and x86_64-apple-darwin. It seems to pick up everything in the right way there.
-
Rust & MySQL: connect, execute SQL statements and stored procs using crate sqlx.
I did look at mysql initially. Then I started checking other crates. Diesel is an Object Relation Model (ORM), I'm not yet keen on taking on the complication of learning ORM, I give this crate a pass in the meantime.
-
Queryx: An Open-Source Go ORM with Automatic Schema Management
I would recommend people look at diesel from Rust for how nice it could be. https://diesel.rs/ Look at the complex queries example. So much more readable and easier to understand.
-
/r/startrek/ migrates to lemmy
Lemmy is written in Rust using Actix Web and Diesel.rs.
-
Backend API recommendations
for psql i feel like there's a wealth of things to choose from, like diesel perhaps https://crates.io/crates/diesel
-
Diesel 2.1
Essentially you would need to implement Backend + Connection (+ the whole bunch of helper traits) for this type. That's ~1kloc for all of that. The PR that introduced this feature has more details on the exact implementation that's generated.
-
New Rustacean Looking For Guidance
diesel
-
What ORM do you use?
some things are barely expressible in the type system. For example, window functions are unavailable (the issue is six years old). You can use raw SQL, but then it has the same problems sqlx has
-
Trait object with generic funtion: don't understand how to do it
Have you considered using a library such as sqlx or Diesel? They’ll handle this for you and supports multiple backends
What are some alternatives?
sea-orm - 🐚 An async & dynamic ORM for Rust
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
rustorm - an orm for rust
rbatis - Rust Compile Time ORM robustness,async, pure Rust Dynamic SQL
r2d2 - A generic connection pool for Rust
rusqlite-model - Model trait and derive implementation for rusqlite
prisma-client-rust - Type-safe database access for Rust
deuterium-orm - Fully typed SQL query builder for Rust [deprecated]
tikv - Distributed transactional key-value database, originally created to complement TiDB
quaint - SQL Query AST and Visitor for Rust
treasure - ORM for rust (journey begins)
SQLx - Portable SQL script editor/executor based on SQLClient and SQLite