smithy-rs VS minijinja

Compare smithy-rs vs minijinja and see what are their differences.

smithy-rs

Code generation for the AWS SDK for Rust, as well as server and generic smithy client generation. (by smithy-lang)

minijinja

MiniJinja is a powerful but minimal dependency template engine for Rust compatible with Jinja/Jinja2 (by mitsuhiko)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
smithy-rs minijinja
4 9
454 1,328
2.6% -
9.8 9.4
about 17 hours ago 5 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

smithy-rs

Posts with mentions or reviews of smithy-rs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-13.
  • Tips on Creating a Design-First API Using Rust
    6 projects | /r/rust | 13 May 2023
    AWS recently released https://github.com/awslabs/smithy-rs, which is the basis upon which the AWS Rust SDKs are built. The team behind it are still refining it, there’s the odd corner-case with smithy models that will catch it, but it is pretty decent now.
  • Axum + Sqlite + minijinja + htmx winning website combo?
    10 projects | /r/rust | 2 Mar 2023
    Here's an example of what this looks like in practice: https://github.com/awslabs/smithy-rs/tree/main/rust-runtime/aws-smithy-http-server-python/examples
  • With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.
    3 projects | /r/programming | 30 Dec 2021
    There’s an older internal schema language for API descriptions, but it can be translated to smithy, so that’s being used for all new sdk’s. See https://github.com/awslabs/smithy-rs for instance.
  • Smithy: A language for defining services and SDKs
    7 projects | news.ycombinator.com | 7 May 2021
    It's not really a fully finished project yet, so not much. We shipped the AWS SDK for JS v3 with Smithy, the AWS SDK for Go v2 with Smithy, and just launched an alpha of the AWS SDK for Rust using Smithy. More are in the works. We're currently iterating on their code generators to make them easier to use outside the AWS SDKs. AWS SDKs are being built in a layered approach where there's a generic code generator that's really extensible, and then the AWS SDKs extend it to add AWS-specific stuff like regions and credential handling.

    We're working to get projects like these to GA: https://github.com/awslabs/smithy-typescript, https://github.com/aws/smithy-go, and https://github.com/awslabs/smithy-rs. And we're also working on service code generation.

minijinja

Posts with mentions or reviews of minijinja. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-04.
  • Cryptoflow: Building a secure and scalable system with Axum and SvelteKit - Part 0
    12 projects | dev.to | 4 Jan 2024
    MiniJinja v1 - Templating engine
  • Full-stack authentication system using rust (actix-web) and sveltekit
    19 projects | dev.to | 23 Apr 2023
    An authentication system is an integral part of modern applications. It's so important that almost all modern applications have some sort of it. Because of their critical nature, such systems should be secure and should follow OWAP®'s recommendations on web security and password hashing as well as storage to prevent attacks such as Preimage and Dictionary attacks (common to SHA algorithms). To demonstrate some of the recommendations, we'll be building a robust session-based authentication system in Rust and a complementary frontend application. For this article series, we'll be using Rust's actix-web and some awesome crates for the backend service. SvelteKit will be used for the frontend. It should be noted however that what we'll be building is largely framework agnostic. As a result, you can decide to opt for axum, rocket, warp or any other rust's web framework for the backend and react, vue or any other javascript framework for the frontend. You can even use rust's yew, seed or some templating engines such as MiniJinja or tera at the frontend. It's entirely up to you. Our focus will be more on the concepts.
  • Axum + Sqlite + minijinja + htmx winning website combo?
    10 projects | /r/rust | 2 Mar 2023
    I worked on a side project (currently with about 30-50 regular real users) using Rust (with axum), sqlite for the database, minijinja for template rendering, and htmx for the frontend interactivity and S3 for backups. It was quick to hack together (who says Rust is bad for prototyping?), and yet I still feel happy about the code quality. It's been running for a while now in production on fly.io free tier, I noticed it's apparently been using a steady 12MB of RAM, and zero errors or production issues so far since its inception. Last night I decided randomly to benchmark it on my laptop, it can handle 4000+ requests per second hitting the database with a bunch of data inside, I have put almost no effort into optimization. I feel like this might be a good result? Perhaps approaches like this will catch on? Something about this feels pretty cool! Has anyone else had this experience using Rust? I can think of multiple applications (in cluster of microservices) I've come across during my day jobs with large AWS bills and much higher incidental complexity that I would probably choose to do differently given this experience if I had the chance.
  • Another rewrite in rust: Pydantic
    2 projects | /r/rust | 18 Feb 2023
    Jinja2 vs minijinja-py: not a rewrite per se tho https://github.com/mitsuhiko/minijinja/tree/main/minijinja-py
  • Experimental MiniJinja Bindings for Python
    1 project | /r/Python | 20 Jan 2023
    Thanks to PyO3 and maturin I was able to make pretty decent Python bindings for MiniJinja, which is a Rust reimplementation of most of Jinja2. This in a way is now full circle.
  • Show HN: Robyn – the fastest Python web framework written in Rust
    6 projects | news.ycombinator.com | 14 Jan 2023
    Ronacher has ported jinja2 (partially) to Rust

    https://github.com/mitsuhiko/minijinja

  • You Can't Do That: Abstracting over Ownership in Rust with Higher-Rank Type Bounds. Or Can You?
    3 projects | /r/rust | 11 Sep 2022
    If you wan't to know why I even dove down into this Rabbit hole: I wanted to enable borrowing for filter functions in MiniJinja. The PR has more context
  • [Questions] Calling a Lua function from Rust: `*mut rlua::ffi::lua_State` cannot be shared between threads safely
    2 projects | /r/rust | 10 Oct 2021
    Hello, I am developing a CLI program for rendering template files using the new MiniJinja library by /u/mitsuhiko.
  • ANN: MiniJinja — a minimal dependency template engine with limited Jinja2 compatibility
    1 project | /r/rust | 24 Sep 2021
    github repo

What are some alternatives?

When comparing smithy-rs and minijinja you can also consider the following projects:

smithy-go - Smithy code generators for Go (in development)

tera - A template engine for Rust based on Jinja2/Django

smithy - Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.

askama - Type-safe, compiled Jinja-like templates for Rust

openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

rust - Empowering everyone to build reliable and efficient software.

rust-experiments - Small experiments in writing Rust programs to perform specific tasks

alacritty - A cross-platform, OpenGL terminal emulator.

svelte-axum-project - Starting project template for Rust Axum backend and Svelte frontend

actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

rust-example-caster-api - DEPRECATED: A demo Rust API implementation using Tokio, Axum, async-graphql, and SeaORM

rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266