For developers who’ve mastered the basics, this book is the next step on your way to professional-level programming in Rust. It covers everything you need to build and maintain larger code bases, write powerful and flexible applications and libraries, and confidently expand the scope and complexity of your projects.
Author Jon Gjengset takes you deep into the Rust programming language, dissecting core topics like ownership, traits, concurrency, and unsafe code. You’ll explore key concepts like type layout and trait coherence, delve into the inner workings of concurrent programming and asynchrony with async/await, and take a tour of the world of no_std programming. Gjengset also provides expert guidance on API design, testing strategies, and error handling, and will help develop your understanding of foreign function interfaces, object safety, procedural macros, and much more.
You’ll Learn:
– How to design reliable, idiomatic, and ergonomic Rust programs based on best principles
– Effective use of declarative and procedural macros, and the difference between them
– How asynchrony works in Rust – all the way from the Pin and Waker types used in manual implementations of Futures, to how async/await saves you from thinking about most of those words
– What it means for code to be unsafe, and best practices for writing and interacting with unsafe functions and traits
– How to organize and configure more complex Rust projects so that they integrate nicely with the rest of the ecosystem
– How to write Rust code that can interoperate with non-Rust libraries and systems, or run in constrained and embedded environments
Brimming with practical, pragmatic insights that you can immediately apply, Rust for Rustaceans helps you do more with Rust, while also teaching you its underlying mechanisms.
ترجمه فارسی (ترجمه ماشینی)
تسلط بر برنامه نویسی در سطح حرفه ای در Rust.
برای توسعه دهندگانی که به اصول اولیه تسلط دارند، این کتاب گام بعدی در مسیر شما به سمت برنامه نویسی در سطح حرفه ای در Rust است. این همه چیزهایی را که برای ایجاد و نگهداری پایههای کد بزرگتر، نوشتن برنامهها و کتابخانههای قدرتمند و انعطافپذیر نیاز دارید، و با اطمینان دامنه و پیچیدگی پروژههای خود را گسترش میدهد، پوشش میدهد.
نویسنده Jon Gjengset شما را عمیقاً به زبان برنامه نویسی Rust می برد و موضوعات اصلی مانند مالکیت، ویژگی ها، همزمانی و کد ناامن را تشریح می کند. شما مفاهیم کلیدی مانند چیدمان نوع و انسجام صفات را کاوش خواهید کرد، به کارکرد درونی برنامه نویسی همزمان و ناهمگامی با async/await می پردازید و توری در دنیای برنامه نویسی no_std خواهید داشت. Gjengset همچنین راهنماییهای تخصصی در مورد طراحی API، استراتژیهای آزمایش، و مدیریت خطا ارائه میدهد و به توسعه درک شما از رابطهای عملکرد خارجی، ایمنی شی، ماکروهای رویهای و موارد دیگر کمک میکند.
یاد خواهید گرفت:
– نحوه طراحی برنامه های Rust قابل اعتماد، اصطلاحی و ارگونومیک بر اساس بهترین اصول
– استفاده مؤثر از ماکروهای اعلامی و رویه ای و تفاوت بین آنها
– نحوه عملکرد ناهمزمان در Rust – از انواع Pin و Waker که در پیادهسازیهای دستی Futures استفاده میشوند، تا اینکه چگونه async/wait شما را از فکر کردن به بیشتر آن کلمات نجات میدهد
– ناامن بودن کد به چه معناست و بهترین روشها برای نوشتن و تعامل با توابع و ویژگیهای ناامن
– چگونه پروژه های Rust پیچیده تر را سازماندهی و پیکربندی کنیم تا به خوبی با بقیه اکوسیستم ادغام شوند
– نحوه نوشتن کد Rust که می تواند با کتابخانه ها و سیستم های غیر Rust تعامل داشته باشد یا در محیط های محدود و جاسازی شده اجرا شود
پر از بینشهای عملی و عملگرایانه که میتوانید فوراً اعمال کنید، Rust for Rustaceans به شما کمک میکند تا کارهای بیشتری با Rust انجام دهید، در حالی که مکانیسمهای اساسی آن را نیز به شما آموزش میدهد.
نقد و بررسیها
هنوز بررسیای ثبت نشده است.