Crates.io | sort_library |
lib.rs | sort_library |
version | 0.1.1 |
source | src |
created_at | 2024-04-19 17:48:09.112194 |
updated_at | 2024-04-20 07:01:02.22454 |
description | A library for sorting algorithms in Rust |
homepage | |
repository | |
max_upload_size | |
id | 1213968 |
size | 116,862 |
This is a Rust library containing implementations of various sorting algorithms. You can use this library to sort slices of any comparable type.
To use this library locally, follow these steps:
Clone the repository:
git clone https://github.com/rulik04/sort_library.git <destination_folder_path>
Replace <destination_folder_path> with the path to the folder where you want to clone the repository. sort_library and the project where you want to use this library must be in the same folder.
Use the sorting algorithms in your Rust project by importing the desired module:
use sort_library::{insertion_sort, merge_sort, quick_sort, selection_sort};
dependencies
Add the following line to your Cargo.toml
file under [dependencies]
:
```toml
sort_library = { git = "https://github.com/rulik04/sort_library.git" }
```
Then you can import and use the sorting algorithms as mentioned in the previous section.
Add the library to your Cargo.toml
file using the cargo add
command:
cargo add sort_library
And then you can import and use the sorting algorithms as mentioned in the previous sections.