Skip to Content
이펙티브 러스트
book

이펙티브 러스트

by 데이비드 드라이스데일, 남기혁
October 2024
Beginner to intermediate
344 pages
7h 44m
Korean
Hanbit Media, Inc.
Content preview from 이펙티브 러스트
312
이펙티브 러스트
아이템
33
:
no
_
std
에 호환되는 라이브러리 코드를 고려하라
러스트는 표준 데이터 구조부터 네트워킹, 멀티 스레딩 지원, 파일
I
/
O
에 이르기까지 자주 사
용하는 기능을 담은 표준 라이브러리 (
std
)를 기본으로 제공한다. 러스트에서는
std
항목 중
상당 부분을 자동으로 임포트
import
할 수 있는
프렐류드
prelude
기능을 제공한다. 프렐류드를 이용
하면 자주 사용하는 타입을 간략한 이름으로 사용할 수 있다. 예를 들어
std
::
vec
::
Vec
대신
Vec
을 사용해도 된다.
러스트는 부트 로더
boot
loader
나 펌웨어, 임베디드 플랫폼처럼 표준 라이브러리를 완전히 제공할
수 없는 환경에서 실행될 코드에 대한 빌드도 지원한다.
src
/
lib
.
rs
상단에 크레이트 수준 속
성인
#![
no
_
std
]
를 지정하면 된다.
이번 아이템에서는
no
_
std
용으로 빌드할 때 사용할 수 없는 기능과 여전히 사용할 수 있는
(생각보다 꽤 많은) 기능을 살펴본다.
하지만 여기서는 라이브러리 코드에 대한
no
_
std
지원 위주로 설명한다.
no
_
std
바이너리 제
작에 관련된 다양한 이슈에 대해서는 이 책에서 다루지 않고,
2
열악한 환경에서 작업할 수밖에
없는 안타까운 영혼들에게 라이브러리 코드만큼은 확실히 사용할 수 있게 만드는 데 집중한다.
core ...
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