text stringlengths 7.05k 33.9k |
|---|
// Copyright (c) 2019 Parity Technologies (UK) Ltd.
// Copyright (c) 2016 twist developers
//
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the... |
use crate::auto_req::{find_requires, AutoReqMode};
use crate::error::{ConfigError, Error};
use cargo_toml::Error as CargoTomlError;
use cargo_toml::Manifest;
use rpm::{Compressor, Dependency, RPMBuilder, RPMFileOptions};
use std::env::consts::ARCH;
use std::path::{Path, PathBuf};
use std::str::FromStr;
use toml::value:... |
//! This module implements a thread safe library database.
//!
//! A library database contains a collection of libraries.
//! A library contains a collection of file entries.
//! Libraries that contain multiple ok entries with the same case-insensitive file path are rejected.
//!
//! The order of the libraries matters.... |
use crate::config::Config;
use crate::mux::Mux;
use crate::server::codec::*;
use crate::server::UnixListener;
use failure::{bail, err_msg, format_err, Error, Fallible};
#[cfg(unix)]
use libc::{mode_t, umask};
use log::{debug, error, warn};
use native_tls::{Identity, TlsAcceptor};
use promise::{Executor, Future};
use st... |
//! Binning the iterator output into fixed size intervals if the output
//! is of the form `(I64Interval, T)`. Only bins with non-empty intersections
//! with those intervals will be returned.
use crate::{
interval::{traits::Interval, I64Interval},
iter::CommonRefinementZip,
set::traits::{Finite, Intersect... |
use crate::model::common::{iast, ColName, ColType};
use crate::model::common::{proc, TablePath};
use sqlparser::ast;
use sqlparser::test_utils::table;
use std::collections::BTreeMap;
// -----------------------------------------------------------------------------------------------
// Utils
// ------------------------... |
// Some ideas from https://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
// https://gist.github.com/lifthrasiir/7501753
#![allow(clippy::unreadable_literal)]
const BLOCK_SIZE: usize = 512;
const LENGTH_BITS: usize = 64;
pub struct MD5 {
// Avoid repeatedly allocating by reusing this bloc... |
// Copyright (c) 2019 - 2020 ESRLabs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.