1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) godot-rust; Bromeon and contributors.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// ----------------------------------------------------------------------------------------------------------------------------------------------
// Compatibility
// Code generated by Rust derive macros cannot cause any deprecation warnings, due to questionable "feature"
// https://github.com/rust-lang/rust/pull/58994. Fortunately, an extra layer of indirection solves most problems: we generate a declarative
// macro that itself isn't deprecated, but _its_ expansion is. Since the expansion happens in a later step, the warning is emitted.
// Usage example.
//
// 1. Declare a const fn which describes the deprecation warning.
//
// #[deprecated = "#[base] is no longer needed; Base<T> is recognized directly. \n\
// More information on https://github.com/godot-rust/gdext/pull/577."]
// pub const fn base_attribute() {}
//
// 2. At the place of usage, use the `emit_deprecated_warning!` macro to emit the warning. This can be generated by codegen, as well.
//
// #[cfg(feature = "custom-godot")]
// __deprecated::emit_deprecated_warning!(feature_custom_godot);
pub use crateemit_deprecated_warning;
// ----------------------------------------------------------------------------------------------------------------------------------------------
// Library-side deprecations -- see usage description above.
pub const
// ----------------------------------------------------------------------------------------------------------------------------------------------
// Godot-side deprecations (we may mark them deprecated but keep support).
// Past removals: `radians` in #[export(range)].