Skip to content

Commit e6c9dfb

Browse files
committed
Make include files more fine-grained
1 parent 603b659 commit e6c9dfb

33 files changed

+5534
-5119
lines changed

benchmark/distinctuseridcompetition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "simdjson.h"
22
#include <algorithm>
3+
#include <cstring>
34
#include <unistd.h>
45
#include <vector>
56

doc/basics.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,3 +488,10 @@ The parsed results (`dom::document`, `dom::element`, `array`, `object`) depend o
488488

489489
The CPU detection, which runs the first time parsing is attempted and switches to the fastest
490490
parser for your CPU, is transparent and thread-safe.
491+
492+
Backwards Compatibility
493+
-----------------------
494+
495+
The only header file supported by simdjson is simdjson.h. Older versions of simdjson published a
496+
number of other include files such as document.h or ParsedJson.h alongside simdjson.h; these headers
497+
may be moved or removed in future versions.

include/simdjson.h

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,29 @@ SIMDJSON_DISABLE_UNDESIRED_WARNINGS
1818
#include "simdjson/error.h"
1919
#include "simdjson/padded_string.h"
2020
#include "simdjson/implementation.h"
21-
#include "simdjson/document.h"
22-
#include "simdjson/document_stream.h"
23-
24-
// // Deprecated API
25-
#include "simdjson/jsonparser.h"
26-
#include "simdjson/parsedjson.h"
27-
#include "simdjson/parsedjson_iterator.h"
28-
29-
// // Inline functions
30-
#include "simdjson/inline/document.h"
21+
#include "simdjson/dom/array.h"
22+
#include "simdjson/dom/document_stream.h"
23+
#include "simdjson/dom/document.h"
24+
#include "simdjson/dom/element.h"
25+
#include "simdjson/dom/object.h"
26+
#include "simdjson/dom/parser.h"
27+
28+
// Deprecated API
29+
#include "simdjson/dom/jsonparser.h"
30+
#include "simdjson/dom/parsedjson.h"
31+
#include "simdjson/dom/parsedjson_iterator.h"
32+
33+
// Inline functions
34+
#include "simdjson/inline/array.h"
3135
#include "simdjson/inline/document_stream.h"
36+
#include "simdjson/inline/document.h"
37+
#include "simdjson/inline/element.h"
3238
#include "simdjson/inline/error.h"
39+
#include "simdjson/inline/object.h"
3340
#include "simdjson/inline/padded_string.h"
3441
#include "simdjson/inline/parsedjson_iterator.h"
42+
#include "simdjson/inline/parser.h"
43+
#include "simdjson/inline/tape_ref.h"
3544

3645
SIMDJSON_POP_DISABLE_WARNINGS
3746

0 commit comments

Comments
 (0)