removed unneeded dependancy

master
Avril 5 years ago
parent e3cf2cdaf2
commit a9121e4079
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,4 +1,4 @@
VERSION:= v0.1.0
VERSION:= v0.2.0
all: clean deps sign trust

@ -1 +1 @@
generator-v0.1.0
generator-v0.2.0

@ -2,21 +2,4 @@
# It is not intended for manual editing.
[[package]]
name = "generator-native"
version = "0.1.0"
dependencies = [
"heaparray",
]
[[package]]
name = "heaparray"
version = "0.1.0"
source = "git+https://github.com/notflan/heaparray#6b57c19cf82a71f6bd6e566be7cf36ef1926def7"
dependencies = [
"libc",
]
[[package]]
name = "libc"
version = "0.2.70"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3baa92041a6fec78c687fa0cc2b3fae8884f743d672cf551bed1d6dac6988d0f"
version = "0.2.0"

@ -1,6 +1,6 @@
[package]
name = "generator-native"
version = "0.1.0"
version = "0.2.0"
authors = ["Avril <flanchan@cumallover.me>"]
license = "GPL 3.0"
edition = "2018"
@ -8,4 +8,3 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
heaparray = { git = "https://github.com/notflan/heaparray" }

@ -3,9 +3,6 @@ use std::{
Read,
},
};
use heaparray::{
heap,
};
pub struct BufferedReadIter<F>
where F: Read
@ -49,7 +46,7 @@ impl<F: Read> Iterator for BufferedReadIter<F>
impl<F: Read> BufferedReadIter<F>
{
pub fn new(iter: F, buffer_len: usize) -> Self {
let buffer = heap![u8; buffer_len].into_box();
let buffer = vec![0u8; buffer_len].into_boxed_slice();
Self {
iter,
buffer_len: 0,

@ -1,7 +1,5 @@
#![allow(dead_code)]
extern crate heaparray;
use std::{
fs::{
OpenOptions,

@ -3,7 +3,7 @@ pub fn c_escape<T>(input: T) -> String
where T: AsRef<str>
{
let input = input.as_ref();
let mut chr = Vec::new();
let mut chr = Vec::with_capacity(input.len());
for c in input.chars() {
match c {
'\\' => {

Binary file not shown.

Binary file not shown.

@ -1 +0,0 @@
621638ffc2740f90112e1b977dfcb91b20195cb86427b2d15275682ce8e82618

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
73b426bd99679b99ed5774ddd55ddbc845f04377eb9c778b06162232b4188df4
Loading…
Cancel
Save