Cargo: ์ข…์†์„ฑ์—์„œ ๊ธฐ๋Šฅ์„ ์กฐ๊ฑด๋ถ€๋กœ ํ™œ์„ฑํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ• ๋ฌธ์„œํ™”

์— ๋งŒ๋“  2018๋…„ 03์›” 07์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: rust-lang/cargo

features ์„น์…˜์˜ / ๊ตฌ๋ฌธ์€ ๋ฌธ์„œํ™”๋˜์ง€ ์•Š์€ ๊ฒƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.

A-documenting-cargo-itself

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์ธํ„ฐ๋„ท ๊ฒ€์ƒ‰์„ ํ†ตํ•ด ์—ฌ๊ธฐ์— ์˜ค๋Š” ๋‹ค๋ฅธ ์‚ฌ๋žŒ์„ ์œ„ํ•ด:

[dependencies]
othercrate = "1.2.3"

[features]
myfeature = ["othercrate/otherfeature"]

๋ชจ๋“  3 ๋Œ“๊ธ€

์ธํ„ฐ๋„ท ๊ฒ€์ƒ‰์„ ํ†ตํ•ด ์—ฌ๊ธฐ์— ์˜ค๋Š” ๋‹ค๋ฅธ ์‚ฌ๋žŒ์„ ์œ„ํ•ด:

[dependencies]
othercrate = "1.2.3"

[features]
myfeature = ["othercrate/otherfeature"]

๊ทธ๋ ‡์Šต๋‹ˆ๊นŒ? ๋งค๋‹ˆํŽ˜์ŠคํŠธ ์ฐธ์กฐ ๋ฌธ์„œ( link )์˜ [features] ์„น์…˜์—๋Š” ๋‹ค์Œ ์˜ˆ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

# Features can be used to reexport features of other packages. The `session`
# feature of package `awesome` will ensure that the `session` feature of the
# package `cookie` is also enabled.
session = ["cookie/session"]

(์ด ๊ธฐ๋Šฅ์€ #712์˜ ๊ธฐ๋Šฅ์ด ์‹œ์ž‘๋œ ์ดํ›„๋กœ ์กด์žฌํ–ˆ์Šต๋‹ˆ๋‹ค)

์ด๊ฒƒ์ด ๋ฐฉ๊ธˆ ๋†“์ณค๋‹ค๊ณ  ๋‚™๊ด€์ ์œผ๋กœ ๋‹ซ์Šต๋‹ˆ๋‹ค(3์›”์—๋Š” mdbook ๊ฒ€์ƒ‰์ด ์—†์—ˆ๋˜ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค). ์—ฌ์ „ํžˆ ์ž‘์—…์ด ํ•„์š”ํ•˜๋ฉด ๋‹ค์‹œ ์—ด ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

cookie ๊ฐ€ ์„ ํƒ ์‚ฌํ•ญ์ธ ๊ฒฝ์šฐ ์–ด๋–ป๊ฒŒ ์ž‘๋™ํ•ฉ๋‹ˆ๊นŒ?

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰