@@ -44,8 +44,8 @@ use syn::{parse_macro_input, DeriveInput, NestedMeta};
44
44
/// environment variable when running your code (either in the code directly or when running the
45
45
/// binary) to either "all" or [`CLONE_MACRO_LOG_DOMAIN`]:
46
46
///
47
- /// [`g_debug`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/macro.g_debug.html
48
- /// [`CLONE_MACRO_LOG_DOMAIN`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/constant.CLONE_MACRO_LOG_DOMAIN.html
47
+ /// [`g_debug`]: .. /glib/macro.g_debug.html
48
+ /// [`CLONE_MACRO_LOG_DOMAIN`]: .. /glib/constant.CLONE_MACRO_LOG_DOMAIN.html
49
49
///
50
50
/// ```rust,ignore
51
51
/// use glib::CLONE_MACRO_LOG_DOMAIN;
@@ -292,16 +292,16 @@ pub fn clone(item: TokenStream) -> TokenStream {
292
292
/// [`clone!`](crate::clone!), as is aliasing captures with the `as` keyword. Notably, these
293
293
/// captures are able to reference `Rc` and `Arc` values in addition to `Object` values.
294
294
///
295
- /// [`Closure`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/closure/struct.Closure.html
296
- /// [`Closure::new`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/closure/struct.Closure.html#method.new
297
- /// [`Closure::new_local`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/closure/struct.Closure.html#method.new_local
298
- /// [`Closure::invoke`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/closure/struct.Closure.html#method.invoke
299
- /// [`Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/struct.Value.html
300
- /// [`FromValue`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/trait.FromValue.html
301
- /// [`ToValue`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/trait.ToValue.html
302
- /// [`Interface`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/object/struct.Interface.html
303
- /// [`Object`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/object/struct.Object.html
304
- /// [`Object::watch_closure`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/object/trait.ObjectExt.html#tymethod.watch_closure
295
+ /// [`Closure`]: .. /glib/closure/struct.Closure.html
296
+ /// [`Closure::new`]: .. /glib/closure/struct.Closure.html#method.new
297
+ /// [`Closure::new_local`]: .. /glib/closure/struct.Closure.html#method.new_local
298
+ /// [`Closure::invoke`]: .. /glib/closure/struct.Closure.html#method.invoke
299
+ /// [`Value`]: .. /glib/value/struct.Value.html
300
+ /// [`FromValue`]: .. /glib/value/trait.FromValue.html
301
+ /// [`ToValue`]: .. /glib/value/trait.ToValue.html
302
+ /// [`Interface`]: .. /glib/object/struct.Interface.html
303
+ /// [`Object`]: .. /glib/object/struct.Object.html
304
+ /// [`Object::watch_closure`]: .. /glib/object/trait.ObjectExt.html#tymethod.watch_closure
305
305
/// **⚠️ IMPORTANT ⚠️**
306
306
///
307
307
/// `glib` needs to be in scope, so unless it's one of the direct crate dependencies, you need to
@@ -411,7 +411,7 @@ pub fn closure(item: TokenStream) -> TokenStream {
411
411
/// This is useful for closures which can't be sent across threads. See the documentation of
412
412
/// [`closure!`](crate::closure!) for details.
413
413
///
414
- /// [`Closure::new_local`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/closure/struct.Closure.html#method.new_local
414
+ /// [`Closure::new_local`]: .. /glib/closure/struct.Closure.html#method.new_local
415
415
#[ proc_macro]
416
416
#[ proc_macro_error]
417
417
pub fn closure_local ( item : TokenStream ) -> TokenStream {
@@ -438,7 +438,7 @@ pub fn closure_local(item: TokenStream) -> TokenStream {
438
438
/// }
439
439
/// ```
440
440
///
441
- /// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/struct.Value.html
441
+ /// [`glib::Value`]: .. /glib/value/struct.Value.html
442
442
#[ proc_macro_derive( Enum , attributes( enum_type, enum_value) ) ]
443
443
#[ proc_macro_error]
444
444
pub fn enum_derive ( input : TokenStream ) -> TokenStream {
@@ -476,7 +476,7 @@ pub fn enum_derive(input: TokenStream) -> TokenStream {
476
476
/// }
477
477
/// ```
478
478
///
479
- /// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/struct.Value.html
479
+ /// [`glib::Value`]: .. /glib/value/struct.Value.html
480
480
#[ proc_macro_attribute]
481
481
#[ proc_macro_error]
482
482
pub fn flags ( attr : TokenStream , item : TokenStream ) -> TokenStream {
@@ -503,7 +503,7 @@ pub fn flags(attr: TokenStream, item: TokenStream) -> TokenStream {
503
503
/// }
504
504
/// ```
505
505
///
506
- /// [`ErrorDomain`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/error/trait.ErrorDomain.html
506
+ /// [`ErrorDomain`]: .. /glib/error/trait.ErrorDomain.html
507
507
#[ proc_macro_derive( ErrorDomain , attributes( error_domain) ) ]
508
508
#[ proc_macro_error]
509
509
pub fn error_domain_derive ( input : TokenStream ) -> TokenStream {
@@ -526,8 +526,8 @@ pub fn error_domain_derive(input: TokenStream) -> TokenStream {
526
526
/// struct MyBoxed(String);
527
527
/// ```
528
528
///
529
- /// [`BoxedType`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/subclass/boxed/trait.BoxedType.html
530
- /// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/struct.Value.html
529
+ /// [`BoxedType`]: .. /glib/subclass/boxed/trait.BoxedType.html
530
+ /// [`glib::Value`]: .. /glib/value/struct.Value.html
531
531
#[ proc_macro_derive( Boxed , attributes( boxed_nullable, boxed_type) ) ]
532
532
#[ proc_macro_error]
533
533
pub fn boxed_derive ( input : TokenStream ) -> TokenStream {
@@ -554,8 +554,8 @@ pub fn boxed_derive(input: TokenStream) -> TokenStream {
554
554
/// struct MyShared(std::sync::Arc<MySharedInner>);
555
555
/// ```
556
556
///
557
- /// [`SharedType`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/subclass/shared/trait.SharedType.html
558
- /// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/value/struct.Value.html
557
+ /// [`SharedType`]: .. /glib/subclass/shared/trait.SharedType.html
558
+ /// [`glib::Value`]: .. /glib/value/struct.Value.html
559
559
#[ proc_macro_derive( SharedBoxed , attributes( shared_boxed_nullable, shared_boxed_type) ) ]
560
560
#[ proc_macro_error]
561
561
pub fn shared_boxed_derive ( input : TokenStream ) -> TokenStream {
@@ -592,7 +592,7 @@ pub fn shared_boxed_derive(input: TokenStream) -> TokenStream {
592
592
/// }
593
593
/// ```
594
594
///
595
- /// [`ObjectSubclass`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/subclass/types/trait.ObjectSubclass.html
595
+ /// [`ObjectSubclass`]: .. /glib/subclass/types/trait.ObjectSubclass.html
596
596
#[ proc_macro_attribute]
597
597
#[ proc_macro_error]
598
598
pub fn object_subclass ( _attr : TokenStream , item : TokenStream ) -> TokenStream {
@@ -617,7 +617,7 @@ pub fn object_subclass(_attr: TokenStream, item: TokenStream) -> TokenStream {
617
617
/// type Prerequisites = ();
618
618
/// ```
619
619
///
620
- /// [`ObjectInterface`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/subclass/interface/trait.ObjectInterface.html
620
+ /// [`ObjectInterface`]: .. /glib/subclass/interface/trait.ObjectInterface.html
621
621
#[ proc_macro_attribute]
622
622
#[ proc_macro_error]
623
623
pub fn object_interface ( _attr : TokenStream , item : TokenStream ) -> TokenStream {
@@ -685,8 +685,8 @@ pub fn object_interface(_attr: TokenStream, item: TokenStream) -> TokenStream {
685
685
/// }
686
686
/// ```
687
687
///
688
- /// [`glib::clone::Downgrade`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/clone/trait.Downgrade.html
689
- /// [`glib::clone::Upgrade`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/clone/trait.Upgrade.html
688
+ /// [`glib::clone::Downgrade`]: .. /glib/clone/trait.Downgrade.html
689
+ /// [`glib::clone::Upgrade`]: .. /glib/clone/trait.Upgrade.html
690
690
#[ proc_macro_derive( Downgrade ) ]
691
691
pub fn downgrade ( input : TokenStream ) -> TokenStream {
692
692
let input = parse_macro_input ! ( input as DeriveInput ) ;
@@ -793,9 +793,9 @@ pub fn downgrade(input: TokenStream) -> TokenStream {
793
793
/// assert_eq!(var.get::<MyEnum>(), Some(v));
794
794
/// ```
795
795
///
796
- /// [`glib::Variant`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/variant/struct.Variant.html
797
- /// [`EnumClass`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/struct.EnumClass.html
798
- /// [`FlagsClass`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs /glib/struct.FlagsClass.html
796
+ /// [`glib::Variant`]: .. /glib/variant/struct.Variant.html
797
+ /// [`EnumClass`]: .. /glib/struct.EnumClass.html
798
+ /// [`FlagsClass`]: .. /glib/struct.FlagsClass.html
799
799
/// [kebab case]: https://docs.rs/heck/0.4.0/heck/trait.ToKebabCase.html
800
800
#[ proc_macro_derive( Variant , attributes( variant_enum) ) ]
801
801
#[ proc_macro_error]
0 commit comments