mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 09:05:32 +00:00
remove extra dependencies
This commit is contained in:
parent
f12d052b47
commit
be813cf643
9 changed files with 13 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ggemtext"
|
||||
version = "0.1.3"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
|
|
@ -15,6 +15,7 @@ categories = [
|
|||
]
|
||||
repository = "https://github.com/YGGverse/ggemtext"
|
||||
|
||||
[dependencies.gtk]
|
||||
package = "gtk4"
|
||||
version = "0.9.1"
|
||||
[dependencies.glib]
|
||||
package = "glib"
|
||||
version = "0.20.4"
|
||||
features = ["v2_66"]
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ match Header::from("# H1") {
|
|||
match Link::from(
|
||||
"=> gemini://geminiprotocol.net 1965-01-19 Gemini",
|
||||
None, // absolute path given, base not wanted
|
||||
Some(>k::glib::TimeZone::local()),
|
||||
Some(&glib::TimeZone::local()),
|
||||
) {
|
||||
Some(link) => {
|
||||
// Alt
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use gtk::glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
|
||||
pub struct Inline {
|
||||
pub value: GString,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use gtk::glib::GString;
|
||||
use glib::GString;
|
||||
|
||||
pub struct Multiline {
|
||||
pub alt: Option<GString>,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use gtk::glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
|
||||
pub enum Level {
|
||||
H1,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
use gtk::glib::{
|
||||
DateTime, GString, Regex, RegexCompileFlags, RegexMatchFlags, TimeZone, Uri, UriFlags,
|
||||
};
|
||||
use glib::{DateTime, GString, Regex, RegexCompileFlags, RegexMatchFlags, TimeZone, Uri, UriFlags};
|
||||
|
||||
pub struct Link {
|
||||
pub alt: Option<GString>, // [optional] alternative link description
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use gtk::glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
|
||||
pub struct List {
|
||||
pub value: GString,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use gtk::glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
use glib::{GString, Regex, RegexCompileFlags, RegexMatchFlags};
|
||||
|
||||
pub struct Quote {
|
||||
pub value: GString,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use ggemtext::line::{
|
|||
quote::Quote,
|
||||
};
|
||||
|
||||
use gtk::glib::{TimeZone, Uri, UriFlags};
|
||||
use glib::{TimeZone, Uri, UriFlags};
|
||||
use std::fs;
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue