From 48f5966eaf54b6c2102018c151e38eab0e339e7b Mon Sep 17 00:00:00 2001 From: Tech_Priest_of_Rust Date: Sun, 7 Jul 2024 20:00:41 -0400 Subject: [PATCH] Fixed broken link in README.md to point to docs. Added code to add libcosmic as dependency for lib. --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efd09412..55e6d31a 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,15 @@ default-features = false features = ["wayland", "tokio"] ``` +Alternatively, to create a new package after running `cargo new {{name_of_project}}`, +edit the `Cargo.toml` within, and edit the dependencies section to look like this. + +```toml +[dependencies] +libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, + features = ["wayland", "tokio"] } +``` + ### Cargo Features Available cargo features to choose from: @@ -76,7 +85,7 @@ Available cargo features to choose from: ## Documentation -Documentation can be found [here](https://pop-os.github.io/docs/). +Documentation can be found [here](https://pop-os.github.io/libcosmic/cosmic/). ## Licence