From 348e190427c28d3985ad4c8453eeb2fdee5d4d22 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Thu, 26 Jun 2025 16:02:05 +0530 Subject: Add package details in Cargo.toml --- Cargo.toml | 7 +++++++ README.md | 0 src/main.rs | 1 + src/parser/mod.rs | 1 + src/parser/parser.rs | 10 ++++++++++ 5 files changed, 19 insertions(+) create mode 100644 README.md create mode 100644 src/parser/mod.rs create mode 100644 src/parser/parser.rs diff --git a/Cargo.toml b/Cargo.toml index 76c96ac..7537a46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,3 +2,10 @@ name = "palpad" version = "0.1.0" edition = "2021" +license = "MIT" +description = "A really simple static site generator" +homepage = "https://git.spacejunk.sh/palpad.git" +repository = "https://git.spacejunk.sh/palpad.git" +readme = "README.md" + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/src/main.rs b/src/main.rs index 585eff6..5d2610d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ mod types; +mod parser; use std::fs::File; use std::io::prelude::*; diff --git a/src/parser/mod.rs b/src/parser/mod.rs new file mode 100644 index 0000000..67c567f --- /dev/null +++ b/src/parser/mod.rs @@ -0,0 +1 @@ +pub mod parser; diff --git a/src/parser/parser.rs b/src/parser/parser.rs new file mode 100644 index 0000000..017ec83 --- /dev/null +++ b/src/parser/parser.rs @@ -0,0 +1,10 @@ +pub struct Parser { +} + +pub struct Text { + value: String, +} +pub struct Heading { + size: u8, + value: Text, +} -- cgit