features
์น์
์ /
๊ตฌ๋ฌธ์ ๋ฌธ์ํ๋์ง ์์ ๊ฒ์ผ๋ก ๋ณด์
๋๋ค.
์ธํฐ๋ท ๊ฒ์์ ํตํด ์ฌ๊ธฐ์ ์ค๋ ๋ค๋ฅธ ์ฌ๋์ ์ํด:
[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
๊ฐ ์ ํ ์ฌํญ์ธ ๊ฒฝ์ฐ ์ด๋ป๊ฒ ์๋ํฉ๋๊น?
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ธํฐ๋ท ๊ฒ์์ ํตํด ์ฌ๊ธฐ์ ์ค๋ ๋ค๋ฅธ ์ฌ๋์ ์ํด: