Temporarily disable grease dep
This commit is contained in:
parent
bfce953a96
commit
8a33f15801
3 changed files with 11 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
[com.taoensso/nippy "1.2.1"] ; Stable
|
[com.taoensso/nippy "1.2.1"] ; Stable
|
||||||
[com.taoensso/nippy "2.0.0-beta1"] ; Development (notes below)
|
[com.taoensso/nippy "2.0.0-beta2"] ; Development (notes below)
|
||||||
```
|
```
|
||||||
|
|
||||||
v2 adds pluggable compression, crypto support (also pluggable), an improved API (including much better error messages), easier integration into other tools/libraries, and hugely improved performance.
|
v2 adds pluggable compression, crypto support (also pluggable), an improved API (including much better error messages), easier integration into other tools/libraries, and hugely improved performance.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(defproject com.taoensso/nippy "2.0.0-beta1"
|
(defproject com.taoensso/nippy "2.0.0-beta2"
|
||||||
:description "Clojure serialization library"
|
:description "Clojure serialization library"
|
||||||
:url "https://github.com/ptaoussanis/nippy"
|
:url "https://github.com/ptaoussanis/nippy"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
:dependencies [[org.clojure/clojure "1.4.0"]
|
:dependencies [[org.clojure/clojure "1.4.0"]
|
||||||
[expectations "1.4.43"]
|
[expectations "1.4.43"]
|
||||||
[org.iq80.snappy/snappy "0.3"]
|
[org.iq80.snappy/snappy "0.3"]
|
||||||
[cc.qbits/grease "0.2.1"]]
|
;; [cc.qbits/grease "0.2.1"]
|
||||||
|
]
|
||||||
:profiles {:1.4 {:dependencies [[org.clojure/clojure "1.4.0"]]}
|
:profiles {:1.4 {:dependencies [[org.clojure/clojure "1.4.0"]]}
|
||||||
:1.5 {:dependencies [[org.clojure/clojure "1.5.1"]]}
|
:1.5 {:dependencies [[org.clojure/clojure "1.5.1"]]}
|
||||||
:dev {:dependencies []}
|
:dev {:dependencies []}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,11 @@
|
||||||
(utils :as utils)
|
(utils :as utils)
|
||||||
(compression :as compression :refer (snappy-compressor))
|
(compression :as compression :refer (snappy-compressor))
|
||||||
(encryption :as encryption :refer (aes128-encryptor))])
|
(encryption :as encryption :refer (aes128-encryptor))])
|
||||||
(:import [java.io DataInputStream DataOutputStream]
|
(:import [java.io DataInputStream DataOutputStream ByteArrayOutputStream
|
||||||
[cc.qbits.grease.io FastByteArrayInputStream FastByteArrayOutputStream]
|
ByteArrayInputStream]
|
||||||
|
;; [java.io DataInputStream DataOutputStream]
|
||||||
|
;;[cc.qbits.grease.io FastByteArrayInputStream
|
||||||
|
;;FastByteArrayOutputStream]
|
||||||
[clojure.lang Keyword BigInt Ratio PersistentQueue PersistentTreeMap
|
[clojure.lang Keyword BigInt Ratio PersistentQueue PersistentTreeMap
|
||||||
PersistentTreeSet IPersistentList IPersistentVector IPersistentMap
|
PersistentTreeSet IPersistentList IPersistentVector IPersistentMap
|
||||||
IPersistentSet IPersistentCollection]))
|
IPersistentSet IPersistentCollection]))
|
||||||
|
|
@ -171,7 +174,7 @@
|
||||||
compressor snappy-compressor
|
compressor snappy-compressor
|
||||||
encryptor aes128-encryptor}}]]
|
encryptor aes128-encryptor}}]]
|
||||||
(when legacy-mode (assert-legacy-args compressor password))
|
(when legacy-mode (assert-legacy-args compressor password))
|
||||||
(let [ba (FastByteArrayOutputStream.)
|
(let [ba (ByteArrayOutputStream.)
|
||||||
stream (DataOutputStream. ba)]
|
stream (DataOutputStream. ba)]
|
||||||
(binding [*print-dup* print-dup?] (freeze-to-stream x stream))
|
(binding [*print-dup* print-dup?] (freeze-to-stream x stream))
|
||||||
(let [ba (.toByteArray ba)
|
(let [ba (.toByteArray ba)
|
||||||
|
|
@ -283,7 +286,7 @@
|
||||||
(let [ba data-ba
|
(let [ba data-ba
|
||||||
ba (if password (encryption/decrypt encryptor password ba) ba)
|
ba (if password (encryption/decrypt encryptor password ba) ba)
|
||||||
ba (if compressor (compression/decompress compressor ba) ba)
|
ba (if compressor (compression/decompress compressor ba) ba)
|
||||||
stream (DataInputStream. (FastByteArrayInputStream. ba))]
|
stream (DataInputStream. (ByteArrayInputStream. ba))]
|
||||||
(binding [*read-eval* read-eval?] (thaw-from-stream stream)))
|
(binding [*read-eval* read-eval?] (thaw-from-stream stream)))
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
(cond
|
(cond
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue