E
E
eegmak2021-03-27 19:42:34
Rust
eegmak, 2021-03-27 19:42:34

What is a crate?

How to add a crate to your own project?
What parameters of "system settings" affect the ability to install or use the "crate"?
Is there a division into official/unofficial crates?
Are crates necessarily written in rust or can they be written in any language?
Where is the crate stored?
Is the crate constantly downloaded from the Internet when compiling the project or once?
In what form is a crate a binary or source code?
Does each crate have its own license type?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-03-27
@vabka

Read Cargo book
Crate == package.
Yes, they are always written in rust, but they can be wrappers for sish libraries, for example.
There is no division into official and unofficial - they are all installed from crates.io or from another repository.
To install, you just need to specify it in the dependencies.
All this is described in rustbook

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question