4 Commits
wip ... v0.1

Author SHA1 Message Date
b65e05e549 compress attachments
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
continuous-integration/drone/tag Build is failing
2019-06-01 18:18:59 +02:00
84f3574aa1 share cargo home
Some checks are pending
continuous-integration/drone/push Build encountered an error
2019-06-01 17:49:53 +02:00
ed763c5874 release on tag
Some checks are pending
continuous-integration/drone/push Build is running
continuous-integration/drone Build is failing
2019-06-01 17:06:32 +02:00
12e32c622e omit fmt call
Some checks are pending
continuous-integration/drone/push Build is passing
2019-03-26 17:57:40 +01:00
2 changed files with 27 additions and 3 deletions

View File

@@ -4,12 +4,36 @@ name: default
steps:
- name: build
image: rust:1.33.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- cargo build
- cargo build --jobs 1
- name: build_relase
image: rust:1.33.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- cargo build --release
- mkdir bin
- export CARGO_INSTALL_ROOT=$PWD
- rustup target add x86_64-unknown-linux-musl
- cargo install --jobs 1 --path . --target x86_64-unknown-linux-musl
- mkdir dist
- tar cvzf dist/htmlextract.tar.gz bin/*
when:
event:
- tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_tkn
base_url:
from_secret: gitea_url
files:
- dist/*
checksum:
- md5
- sha512
when:
event: tag

View File

@@ -77,7 +77,7 @@ fn main() -> Result<(), Box<Error>> {
// Let's get the actual text in this text node. A text node wraps around
// a RefCell<String>, so we need to call borrow() to get a &str out.
//let text = text_node.as_text().unwrap().borrow();
write!(out, "{}", serialize_node(as_node)?)?;
out.write_all(serialize_node(as_node)?.as_bytes())?;
/*if let Some(child) = as_node.first_child() {
//TODO: Convert Nodes to String, as this only works for Nodes containing plain text