From 0d4d05a2f3e87126b8f3de98fa86354e26d97ad8 Mon Sep 17 00:00:00 2001 From: Soma Nakamura
Date: Thu, 24 Jul 2025 02:33:46 +0900 Subject: [PATCH] update-README --- COPYING.md | 9 +++++++++ Cargo.toml | 5 +++-- README.md | 23 ++--------------------- 3 files changed, 14 insertions(+), 23 deletions(-) create mode 100644 COPYING.md diff --git a/COPYING.md b/COPYING.md new file mode 100644 index 0000000..b871d33 --- /dev/null +++ b/COPYING.md @@ -0,0 +1,9 @@ +The LGPL 2.1 or any later version + +marisa-rs - Safe Rust wrapper for the marisa-trie C++ library. Copyright (C) 2025 Soma Nakamura + +This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA diff --git a/Cargo.toml b/Cargo.toml index f166ced..833fc91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,10 @@ name = "marisa-rs" version = "0.1.0" edition = "2021" -description = "Safe Rust wrapper for the marisa-trie C++ library - a static memory-efficient trie data structure. Requires marisa-trie system library." -license = "MIT OR Apache-2.0" +description = "Safe Rust wrapper for the marisa-trie C++ library" +license = "LGPL-2.1-or-later" readme = "README.md" +repository = "https://git.centraworks.net/centra/marisa-rs" homepage = "https://crates.io/crates/marisa-rs" keywords = ["trie", "string", "search", "marisa"] categories = ["data-structures", "text-processing"] diff --git a/README.md b/README.md index 1f906bb..b9ace87 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,6 @@ Add this to your `Cargo.toml`: marisa-rs = "0.1" ``` -## Requirements - -This crate requires the marisa-trie C++ library to be installed on your system. - -### Ubuntu/Debian -```bash -sudo apt-get install libmarisa-dev -``` - -### macOS -```bash -brew install marisa-trie -``` - ## Quick Start ```rust @@ -168,11 +154,6 @@ All types (`Keyset`, `Trie`, `Agent`) implement `Send` and can be transferred be ## License -This project is licensed under either of +This project is licensed under LGPL, Version 2.0 - * Apache License, Version 2.0 - * MIT license - -at your option. - -This crate is built on top of the excellent [marisa-trie](https://github.com/s-yata/marisa-trie) library by Susumu Yata. \ No newline at end of file +This crate is built on top of the excellent [marisa-trie](https://github.com/s-yata/marisa-trie) library by Susumu Yata.