filmov
tv
Contract as Code as Contract: Using Rust to Unify Specification and Implementation

Показать описание
Adam Leventhal, Oxide Computer Company
David Pacheco, Oxide Computer Company
Your API specification and implementation need to match. A mismatch is a recipe for heartbreak--broken clients, busted docs--and we see it all the time. Ideally we want a single source of truth for all aspects of an API, but too often we’re forced to specify attributes in multiple places which opens the door for “alternative mistruths”. For our rapidly evolving API, we developed a new library in Rust that incorporates OpenAPI, not just as decorations, but as load-bearing mechanisms that fully define the interface, both specification and implementation.
In this session, we’ll discuss methods of keeping specification and implementation in sync; why we developed Dropshot as an OpenAPI-first HTTP API library; and how we used some of the differentiated capabilities of the Rust language to combine code and contract. We will cover some of the properties of Rust that may be unfamiliar to the audience such as derive- and proc-macros and the powerful Rust type system.
David Pacheco, Oxide Computer Company
Your API specification and implementation need to match. A mismatch is a recipe for heartbreak--broken clients, busted docs--and we see it all the time. Ideally we want a single source of truth for all aspects of an API, but too often we’re forced to specify attributes in multiple places which opens the door for “alternative mistruths”. For our rapidly evolving API, we developed a new library in Rust that incorporates OpenAPI, not just as decorations, but as load-bearing mechanisms that fully define the interface, both specification and implementation.
In this session, we’ll discuss methods of keeping specification and implementation in sync; why we developed Dropshot as an OpenAPI-first HTTP API library; and how we used some of the differentiated capabilities of the Rust language to combine code and contract. We will cover some of the properties of Rust that may be unfamiliar to the audience such as derive- and proc-macros and the powerful Rust type system.
Contract as Code as Contract: Using Rust to Unify Specification and Implementation
Top 5 Developer Contract Clauses
A Lecture to RFBT Contract by Atty. Nicko Soriano
How I became a 6 figure Smart Contract Developer 🧑💻#programming #web3 #technology #tech #code...
What is a Data Contract?
Contracts. General Provisions. Article 1305-1317. Obligations and Contracts.
CODE IS LAW? Smart Contracts Explained (Ethereum, DeFi)
What are Smart Contracts in Crypto? (4 Examples + Animated)
Government Contracts For Small Business
Contract Codes
Smart contracts for beginners, explained (in 6 minutes) | Cryptopedia
Let’s Build your First Ethereum Smart Contract #shorts #blockchain #crypto #coding
What is an API Contract?
Form of Contracts. Article 1356-1358. Obligations and Contracts.
Better Code: Contracts in C++ - Sean Parent & Dave Abrahams - CppCon 2023
Contract Formation | CPA Exam REG | Business Law
How to find government contracts?
Marlowe explained: build low code and no code financial smart contracts on the Cardano blockchain
Contracts - General Provisions 2020
Smart contracts - Simply Explained
Code to contract to code: making ironclad APIs - Adam Chalmers | EuroRust 2024
Smart Contract | Ethereum | Blockchain
Contracts: The Uniform Commercial Code
DAO Smart Contract Code Walkthrough
Комментарии