The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Image from https://www.archlinux.org/
#![cfg(target_os = "macos")] | |
use rustix::event::kqueue; | |
use std::io::{Read, Write}; | |
use std::net::{TcpListener, TcpStream}; | |
use std::os::fd::AsRawFd; | |
use std::time::Duration; | |
fn main() { | |
// kickoff a simple echo server we can hit for demo purposes |
use std::fmt; | |
use log::kv::{self, Source, value::{self, Fill}}; | |
use tracing::{Value, Field, field::{self, Visit}}; | |
#[doc(hidden)] | |
pub struct LogField<'kvs>(&'kvs Field, &'kvs dyn Value); | |
impl fmt::Debug for LogField<'_> { |
#[derive(Debug, PartialEq)] | |
enum State { | |
Waiting { waiting_time: usize }, | |
Filling { rate: usize }, | |
Done, | |
Failure(String), | |
} | |
#[derive(Debug, Clone, Copy)] | |
enum Event { |
macro_rules! fmt_args { | |
($($tt:tt)*) => { | |
_fmt_args_!("",; $($tt)*) | |
}; | |
} | |
macro_rules! _fmt_args_ { | |
($fmt:expr, $($args:expr,)*; ) => { | |
format_args!($fmt $(,$args)*) | |
}; |
#[macro_export] | |
macro_rules! info { | |
// info!("...") | |
($e:expr) => { | |
$crate::info_impl!(($e)); | |
}; | |
// info!("...", args...) | |
($e:expr, $($rest:tt)*) => { | |
$crate::info_impl!(($e) $($rest)*); |
#![feature(async_await)] | |
use std::{cell::Cell, future::Future, io, net::SocketAddr, pin::Pin}; | |
pub trait TcpStream {} | |
impl<T: TcpStream + ?Sized> TcpStream for Pin<Box<T>> {} | |
pub trait Runtime: Send + Sync + 'static { | |
type TcpStream: TcpStream; |
#![feature(async_await)] | |
use std::{cell::Cell, future::Future, io, net::SocketAddr, pin::Pin}; | |
pub trait TcpStream {} | |
impl<T: TcpStream + ?Sized> TcpStream for Pin<Box<T>> {} | |
pub trait Runtime: Send + Sync + 'static { | |
type TcpStream: TcpStream; |
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
Roots for record 0 (stored at leaf 0): [ 0 ] | |
0: 0 | |
Roots for record 1 (stored at leaf 2): [ 1 ] | |
0: 0─┐ | |
1 | |
1: 2─┘ | |
Roots for record 2 (stored at leaf 4): [ 1, 4 ] | |
0: 0─┐ |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'octokit' | |
options = {} | |
OptionParser.new do |opt| | |
opt.on('-s', '--secret SECRET', 'GitHub access token') { |o| options[:secret] = o } | |
opt.on('-r', '--repo-slug REPO_SLUG', 'Repo slug. i.e.: apple/swift') { |o| options[:repo_slug] = o } | |
opt.on('-c', '--changelog-file CHANGELOG_FILE', 'Changelog path') { |o| options[:changelog_file] = o } |