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