Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
include-flate 0.3.0 - Docs.rs
[go: Go Back, main page]

include-flate 0.3.0

A variant of include_bytes!/include_str! with compile-time deflation and runtime lazy inflation
Documentation
// include-flate
// Copyright (C) SOFe
//
// 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 or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(not(feature = "stable"), feature(proc_macro_hygiene))]

include!("../test_util.rs");

use include_flate::flate;

flate!(pub static DATA: [u8] from "assets/ff.dat");

#[test]
fn test() {
    verify("ff.dat", &DATA);
}