Skip to Content
이펙티브 러스트
book

이펙티브 러스트

by 데이비드 드라이스데일, 남기혁
October 2024
Beginner to intermediate
344 pages
7h 44m
Korean
Hanbit Media, Inc.
Content preview from 이펙티브 러스트
311
6
표준 러스트를 넘어서
CHAPTER
표준 러스트를 넘어서
6
러스트 툴체인은 사용자 공간에서 실행되는 순수 러스트 애플리케이션 코드 지원을 넘어 굉장
히 다양한 환경을 지원한다.
툴체인을 실행하는 시스템(호스트
host
)과 컴파일된 코드를 실행하는 시스템 (타깃
taget
)이 다른, 크로스 컴
파일
cross
-
compilation
을 지원한다. 덕분에 쉽게 임베디드 시스템을 개발할 수 있다.
외부 함수 인터페이스 (
FFI
)를 기본으로 제공해서 러스트가 아닌 다른 언어로 컴파일된 코드와 연동할
수 있다.
표준 라이브러리 (
std
)가 완벽하게 제공되지 않은 환경도 지원해 파일 시스템이나 네트워킹 기능이 없
는, 운영 체제의 기능이 부족한 시스템을 대상으로도 개발할 수 있다.
표준
alloc
라이브러리를 사용하지 않아서 힙 할당 없이 스택만 제공되는 환경에 대한 개발도 지원한다.
이런 비표준 러스트 환경은 작업이 훨씬 까다롭고 안전성도 떨어지며 심지어
unsafe
할 수도
있지만, 작업할 때 활용할 수 있는 선택 사항이 훨씬 다양하다.
이 장에서는 이런 비표준 환경에서 작업하는 데 필요한 기본 사항을 설명한다. 여기서 소개하
지 않은 다양한 환경에 특화된 기능에 대해서는 다른 자료
1
를 참고하기 바란다.
1
The
Rustonomicon
(
https
:// ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

이펙티브 타입스크립트

이펙티브 타입스크립트

Dan Vanderkam
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리

Publisher Resources

ISBN: 9791169212946