mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Bump minimum supported Rust version to 1.32.0
This commit is contained in:
parent
527dc8f564
commit
4cd55acd78
11 changed files with 285 additions and 250 deletions
|
@ -12,7 +12,7 @@ os:
|
||||||
- windows
|
- windows
|
||||||
|
|
||||||
rust:
|
rust:
|
||||||
- 1.31.0
|
- 1.32.0
|
||||||
- stable
|
- stable
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- The xclip dependency has been removed
|
- The xclip dependency has been removed
|
||||||
- On macOS, Alacritty now requests NSSystemAdministrationUsageDescription to
|
- On macOS, Alacritty now requests NSSystemAdministrationUsageDescription to
|
||||||
avoid permission failures
|
avoid permission failures
|
||||||
|
- Minimum Rust version has been bumped to 1.32.0
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ All patches have to be sent on Github as [pull requests](https://github.com/jwil
|
||||||
|
|
||||||
If you are looking for a place to start contributing to Alacritty, take a look at the [help wanted](https://github.com/jwilm/alacritty/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) and [easy](https://github.com/jwilm/alacritty/issues?q=is%3Aopen+is%3Aissue+label%3A%22D+-+easy%22) issues.
|
If you are looking for a place to start contributing to Alacritty, take a look at the [help wanted](https://github.com/jwilm/alacritty/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) and [easy](https://github.com/jwilm/alacritty/issues?q=is%3Aopen+is%3Aissue+label%3A%22D+-+easy%22) issues.
|
||||||
|
|
||||||
Please note that the minimum supported version of Alacritty is Rust 1.31.0. All patches are expected to work with the minimum supported version.
|
Please note that the minimum supported version of Alacritty is Rust 1.32.0. All patches are expected to work with the minimum supported version.
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
|
|
467
Cargo.lock
generated
467
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,7 @@ crossbeam-channel = "0.3.8"
|
||||||
serde_yaml = "0.8"
|
serde_yaml = "0.8"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
rustc_tools_util = "0.1"
|
rustc_tools_util = "0.2.0"
|
||||||
|
|
||||||
[target.'cfg(not(windows))'.dependencies]
|
[target.'cfg(not(windows))'.dependencies]
|
||||||
xdg = "2"
|
xdg = "2"
|
||||||
|
|
|
@ -8,7 +8,7 @@ license = "Apache-2.0"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
euclid = "0.19.2"
|
euclid = "0.19.2"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
foreign-types = "0.3"
|
foreign-types = "0.4"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
[target.'cfg(not(any(target_os = "macos", windows)))'.dependencies]
|
[target.'cfg(not(any(target_os = "macos", windows)))'.dependencies]
|
||||||
|
|
|
@ -11,16 +11,18 @@
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
use std::ptr::NonNull;
|
||||||
|
|
||||||
use foreign_types::ForeignTypeRef;
|
use foreign_types::ForeignTypeRef;
|
||||||
|
|
||||||
use super::ffi::FcCharSetCreate;
|
use super::ffi::FcCharSetCreate;
|
||||||
use super::ffi::{FcCharSet, FcCharSetAddChar, FcCharSetDestroy};
|
use super::ffi::{FcCharSet, FcCharSetAddChar, FcCharSetDestroy};
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type! {
|
||||||
|
pub type CharSet {
|
||||||
type CType = FcCharSet;
|
type CType = FcCharSet;
|
||||||
fn drop = FcCharSetDestroy;
|
fn drop = FcCharSetDestroy;
|
||||||
pub struct CharSet;
|
}
|
||||||
pub struct CharSetRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CharSet {
|
impl CharSet {
|
||||||
|
@ -31,7 +33,7 @@ impl CharSet {
|
||||||
|
|
||||||
impl Default for CharSet {
|
impl Default for CharSet {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
CharSet(unsafe { FcCharSetCreate() })
|
CharSet(unsafe { NonNull::new(FcCharSetCreate()).unwrap() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,12 +17,10 @@ use super::ffi::{FcConfig, FcConfigDestroy, FcConfigGetCurrent, FcConfigGetFonts
|
||||||
use super::{FontSetRef, SetName};
|
use super::{FontSetRef, SetName};
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type! {
|
||||||
|
pub type Config {
|
||||||
type CType = FcConfig;
|
type CType = FcConfig;
|
||||||
fn drop = FcConfigDestroy;
|
fn drop = FcConfigDestroy;
|
||||||
/// Wraps an FcConfig instance (owned)
|
}
|
||||||
pub struct Config;
|
|
||||||
/// Wraps an FcConfig reference (borrowed)
|
|
||||||
pub struct ConfigRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
use std::ptr::NonNull;
|
||||||
|
|
||||||
use foreign_types::{ForeignType, ForeignTypeRef};
|
use foreign_types::{ForeignType, ForeignTypeRef};
|
||||||
|
|
||||||
|
@ -20,12 +21,10 @@ use super::{ConfigRef, ObjectSetRef, PatternRef};
|
||||||
use super::ffi::{FcFontSet, FcFontSetDestroy, FcFontSetList};
|
use super::ffi::{FcFontSet, FcFontSetDestroy, FcFontSetList};
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type! {
|
||||||
|
pub type FontSet {
|
||||||
type CType = FcFontSet;
|
type CType = FcFontSet;
|
||||||
fn drop = FcFontSetDestroy;
|
fn drop = FcFontSetDestroy;
|
||||||
/// Wraps an FcFontSet instance (owned)
|
}
|
||||||
pub struct FontSet;
|
|
||||||
/// Wraps an FcFontSet reference (borrowed)
|
|
||||||
pub struct FontSetRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FontSet {
|
impl FontSet {
|
||||||
|
@ -44,7 +43,7 @@ impl FontSet {
|
||||||
objects.as_ptr(),
|
objects.as_ptr(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
FontSet(raw)
|
FontSet(NonNull::new(raw).unwrap())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,16 +11,18 @@
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
use std::ptr::NonNull;
|
||||||
|
|
||||||
use libc::c_char;
|
use libc::c_char;
|
||||||
|
|
||||||
use super::ffi::{FcObjectSet, FcObjectSetAdd, FcObjectSetCreate, FcObjectSetDestroy};
|
use super::ffi::{FcObjectSet, FcObjectSetAdd, FcObjectSetCreate, FcObjectSetDestroy};
|
||||||
use foreign_types::ForeignTypeRef;
|
use foreign_types::ForeignTypeRef;
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type! {
|
||||||
|
pub type ObjectSet {
|
||||||
type CType = FcObjectSet;
|
type CType = FcObjectSet;
|
||||||
fn drop = FcObjectSetDestroy;
|
fn drop = FcObjectSetDestroy;
|
||||||
pub struct ObjectSet;
|
}
|
||||||
pub struct ObjectSetRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ObjectSet {
|
impl ObjectSet {
|
||||||
|
@ -31,7 +33,7 @@ impl ObjectSet {
|
||||||
|
|
||||||
impl Default for ObjectSet {
|
impl Default for ObjectSet {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
ObjectSet(unsafe { FcObjectSetCreate() })
|
ObjectSet(unsafe { NonNull::new(FcObjectSetCreate()).unwrap() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ use std::ffi::{CStr, CString};
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::ptr;
|
use std::ptr::{self, NonNull};
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
use foreign_types::{ForeignType, ForeignTypeRef};
|
use foreign_types::{ForeignType, ForeignTypeRef};
|
||||||
|
@ -326,10 +326,10 @@ impl_derived_property_iter! {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type! {
|
||||||
|
pub type Pattern {
|
||||||
type CType = FcPattern;
|
type CType = FcPattern;
|
||||||
fn drop = FcPatternDestroy;
|
fn drop = FcPatternDestroy;
|
||||||
pub struct Pattern;
|
}
|
||||||
pub struct PatternRef;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! string_accessor {
|
macro_rules! string_accessor {
|
||||||
|
@ -360,7 +360,7 @@ impl Pattern {
|
||||||
|
|
||||||
impl Default for Pattern {
|
impl Default for Pattern {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Pattern(unsafe { FcPatternCreate() })
|
Pattern(unsafe { NonNull::new(FcPatternCreate()).unwrap() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue