Skip to Content
이펙티브 러스트
book

이펙티브 러스트

by 데이비드 드라이스데일, 남기혁
October 2024
Beginner to intermediate
344 pages
7h 44m
Korean
Hanbit Media, Inc.
Content preview from 이펙티브 러스트
230
이펙티브 러스트
4
장에서는 러스트에서
cargo
도구를 활용하는 방법 위주로 설명하며, 이 과정에서 언급한 주
의 사항과 이슈는 다른 도구뿐만 아니라 다른 언어에도 적용할 수 있다.
아이템
21
: 시맨틱 버저닝의 의미를 이해하라
SemVer
는 정보 일부가 사라질 수 있는 손실 추정치이고 변경의 의미 역시 완벽하게 표현할
수 없음을 깨닫는다면 무딘 도구로 보이기 시작합니다.
타이터스 윈터스, 『구글 엔지니어는 이렇게 일한다』(한빛미디어,
2022
)
러스트의 패키지 관리자인 카고
Cargo
를 사용하면 러스트 코드에 적합한 의존성(아이템
25
)
시맨틱 버저닝
semantic
versioning
(셈버
semver
)에 따라 자동으로 선택하게 만들 수 있다.
Cargo
.
toml
에 다음과 같이 스탠자
stanza
를 작성한다.
[dependencies]
serde = "1.4"
그러면 여기에 명시한 의존성에 적합한 셈버 버전의 범위를
cargo
에 알려준다. 이 범위를 정
확히 지정하는 방법은 공식 문서 (
https
://
oreil
.
ly
/
fchXS
)에 자세히 나와 있지만, 가장 자
주 사용하는 몇 가지 방법은 다음과 같다.
"1.2.3":
1
.
2
.
3
과 셈버 호환
semver
-
compatible
되는 버전을 모두 허용한다.
"^1.2.3":
"1.2.3"
과 동일한 내용을 더 명시적으로 ...
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