rust
By Serdar Yegulalp Over the last decade or so, a slew of Rust web frameworks have appeared, each built with slightly different users and feature needs in mind. All of them benefit from Rust's type safety, memory safety, speed, and correctness. This article is a quick look at five of the most popular Rust web frameworks: Actix Web, Rocket, Warp, Axum, and Poem. All of them provide common elements for web services: routing, request handling, multiple response types, and middleware. Note that these frameworks do not provide templating, which is typically handled by separate crates. Actix WebActix...
Info World
By Paul Krill JetBrains has released RustRover, a dedicated IDE for the Rust programming language that combines an integrated Rust toolchain with support for AI assistance through an optional plugin and subscription. Announced May 21, RustRover is positioned to simplify the Rust coding experience while “unlocking the language’s full potential,” JetBrains said. Capabilities include real-time feedback, code suggestions, simplified toolchain management, and team collaboration. JetBrains also rolled out a new licensing model. RustRover is available through a paid commercial license or a free non-c...
Info World
By Paul Krill Rust 1.78, just released as the latest version of the popular, memory-safe programming language, adds backing for a #[diagnostic] attribute namespace to influence compiler messages. These messages are treated as hints that the compiler is not required to use, the Rust team said. Also it is not an error to provide a diagnostic that the compiler does not recognize. The feature is designed to allow source code to provide diagnostics even when they are not supported by all compilers. Announced May 2, Rust 1.78 can be installed via rustup: $ rustup update stable Another feature in Rus...
Info World
By Serdar Yegulalp Rust offers programmers a way to write memory-safe software without garbage collection, running at machine-native speed. It's also a complex language to master, with a fairly steep initial learning curve. Here are five gotchas, snags, and traps to watch for when you're getting your footing with Rust—and for more seasoned Rust developers, too. Rust gotchas: 6 things you need to know about writing Rust codeYou can't 'toggle off' the borrow checkerOwnership, borrowing, and lifetimes are baked into Rust. They're an integral part of how the language maintains memory safety withou...
Info World
By Serdar Yegulalp WebAssembly was originally designed to give in-browser web applications a way to run portable, sandboxed, high-performance binaries. As WASM matures beyond the browser, new uses for the technology are emerging. Using WASM to build programmability and extensibility into applications is one use case that is gathering steam. The Extism software library lets you write programs that can interface with extensions written in WebAssembly. Extism handles the data and function-calling interface between code written in your host application and the WASM extensions. This lets you focus ...
Info World
By Paul Krill The Rust language team has published a point release of Rust to fix a critical vulnerability to the standard library that could benefit an attacker when using Windows. Rust 1.77.2, published on April 9, includes a fix for CVE-2024-24576. Before this release, Rust’s standard library did not properly escape arguments when invoking batch files with the bat and cmd extensions on Windows using the Command API. An attacker who controlled arguments passed to a spawned process could execute arbitrary shell commands by bypassing the escape. This vulnerability becomes critical if batch fil...
Info World
By Serdar Yegulalp Over the past decade, Rust has emerged as a language of choice for people who want to write fast, machine-native software that also has strong guarantees for memory safety. Other languages, like C, may run fast and close to the metal, but they lack the language features to ensure program memory is allocated and disposed of properly. As noted recently by the White House Office of the National Cyber Director, these shortcomings enable software insecurities and exploits with costly real-world consequences. Languages like Rust, which put memory safety first, are getting more att...
Info World
By Paul Krill Rust 1.77, the latest version of the Mozilla Research-founded programming language focused on safety, speed, and concurrency, adds support for C-string literals. C-string literals in Rust expand to a null-byte terminated string in memory of type & ‘static CStr. This makes it easier to write code that will interoperate with foreign language interfaces that require null-terminated strings. All relevant error-checking, such as for a missing interior null byte, is performed at compile time. Announced March 21, Rust 1.77 can be installed using rustup: $ rustup update stable Another im...
Info World
閲覧を続けるには、ノアドット株式会社が「プライバシーポリシー」に定める「アクセスデータ」を取得することを含む「nor.利用規約」に同意する必要があります。
「これは何?」という方はこちら