From 9637746f2e0efc551b28391dc4c2601591a65e5d Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin <80598030+RaulTrombin@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:54:11 -0300 Subject: [PATCH] doc: add instructions to gitclone with submodules (#535) --- Makefile | 1 + README.md | 36 +++++++++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ff2ecf554..029808b99 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ prepare: rustup component add rustfmt rustup component add clippy rustup toolchain install nightly --allow-downgrade -c rustfmt clippy + git submodule update --init --recursive check: cargo +nightly fmt --all diff --git a/README.md b/README.md index a8891b29f..31e5a6917 100644 --- a/README.md +++ b/README.md @@ -16,14 +16,36 @@ It's currently under active development and may not be ready for production use You may be interested in: - - [Examples and Usage](https://paperclip-rs.github.io/paperclip). - - [Features being worked on](https://github.com/paperclip-rs/paperclip/projects). - - [API documentation](https://paperclip-rs.github.io/paperclip/paperclip). +- [Examples and Usage](https://paperclip-rs.github.io/paperclip). +- [Features being worked on](https://github.com/paperclip-rs/paperclip/projects). +- [API documentation](https://paperclip-rs.github.io/paperclip/paperclip). ## Developing locally - - Make sure you have [`rustup`](https://rustup.rs/) installed. `cd` into this repository and run `make prepare` to setup your environment. - - Now run `make` to build and run the tests. +- Clone the repository along with its submodules using the following command: + + ```bash + git clone --recurse-submodules git@github.com:paperclip-rs/paperclip.git + ``` + +- Make sure you have [`rustup`](https://rustup.rs/) installed. +- Then move to repository: + + ```bash + cd paperclip + ``` + +- Run the setup environment routine + + ```bash + make prepare + ``` + +- Build the project and run tests: + + ```bash + make + ``` ## Contributing @@ -39,8 +61,8 @@ This project follows the [Rust Code of Conduct](https://www.rust-lang.org/polici Licensed under either of -- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) -- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) +- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or ) +- MIT license ([LICENSE-MIT](LICENSE-MIT) or ) at your option.