aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-03-10 16:14:26 +0300
committerA Farzat <a@farzat.xyz>2026-03-10 16:14:26 +0300
commit3cc047ddc59b07bda9e581f9e8f5ed0b76f95776 (patch)
treefe6482b9e87f997a0cfae71c88a18c7b31e8751f
parente2015a8bb858521a4b45982b9e247503f65b2a3d (diff)
downloadoreilly-epub-3cc047ddc59b07bda9e581f9e8f5ed0b76f95776.tar.gz
oreilly-epub-3cc047ddc59b07bda9e581f9e8f5ed0b76f95776.zip
Add license details properly
-rw-r--r--Cargo.toml1
-rw-r--r--README.md2
-rw-r--r--src/epub.rs4
-rw-r--r--src/http_client.rs4
-rw-r--r--src/main.rs4
-rw-r--r--src/models.rs4
-rw-r--r--src/xml.rs4
7 files changed, 22 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3a44ee6..198a2d6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,6 +2,7 @@
name = "oreilly-epub"
version = "0.1.3"
edition = "2024"
+license = "GPL-3.0-only"
[dependencies]
anyhow = "1.0.102"
diff --git a/README.md b/README.md
index 9267be4..dc26bc1 100644
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ referenced assets.
parsing to update `src`, `href`, and other attributes precisely.
- [x] **Stylesheets completeness**: ensure all CSS referenced by chapters is
included and linked properly (cross-check chapters endpoint vs files list).
-- [ ] **License**: add copyright notice to each file and specify it in Cargo.toml.
+- [x] **License**: add copyright notice to each file and specify it in Cargo.toml.
- [x] **XDG directories**: use XDG‑compatible defaults for config and the
download root.
- [x] **Concurrency**: implement parallel downloads with a configurable limit.
diff --git a/src/epub.rs b/src/epub.rs
index 050e9cf..1336115 100644
--- a/src/epub.rs
+++ b/src/epub.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2026 A Farzat
+// This program is free software: you can redistribute it and/or modify it under the terms of the
+// GNU General Public License, GPLv3, attached at the root of the project.
+
use crate::{
models::{Chapter, EpubResponse, FileEntry},
xml::{build_epub_chapter, write_modified_opf},
diff --git a/src/http_client.rs b/src/http_client.rs
index 3d5a926..6dc9415 100644
--- a/src/http_client.rs
+++ b/src/http_client.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2026 A Farzat
+// This program is free software: you can redistribute it and/or modify it under the terms of the
+// GNU General Public License, GPLv3, attached at the root of the project.
+
use anyhow::{Context, Result};
use reqwest::{Client, cookie::Jar};
use std::{collections::HashMap, fs, path::PathBuf, sync::Arc};
diff --git a/src/main.rs b/src/main.rs
index b4775d6..141fd12 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2026 A Farzat
+// This program is free software: you can redistribute it and/or modify it under the terms of the
+// GNU General Public License, GPLv3, attached at the root of the project.
+
mod epub;
mod http_client;
mod models;
diff --git a/src/models.rs b/src/models.rs
index 806d746..e385fa7 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2026 A Farzat
+// This program is free software: you can redistribute it and/or modify it under the terms of the
+// GNU General Public License, GPLv3, attached at the root of the project.
+
use relative_path::RelativePathBuf;
use serde::Deserialize;
use url::Url;
diff --git a/src/xml.rs b/src/xml.rs
index 277f12a..239fac3 100644
--- a/src/xml.rs
+++ b/src/xml.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2026 A Farzat
+// This program is free software: you can redistribute it and/or modify it under the terms of the
+// GNU General Public License, GPLv3, attached at the root of the project.
+
use anyhow::{Context, Result};
use ogrim::{Document, xml};
use quick_xml::events::{BytesEnd, BytesStart, BytesText, Event};